aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--doc/ScintillaHistory.html4
-rw-r--r--src/Editor.cxx2
2 files changed, 5 insertions, 1 deletions
diff --git a/doc/ScintillaHistory.html b/doc/ScintillaHistory.html
index e1dc99479..079095ae0 100644
--- a/doc/ScintillaHistory.html
+++ b/doc/ScintillaHistory.html
@@ -598,6 +598,10 @@
Enlarge point and point top indicators and scale to be larger with larger text.
</li>
<li>
+ Make SCI_LINESCROLL more accurate when width of space not integer.
+ <a href="https://sourceforge.net/p/scintilla/bugs/2357/">Bug #2357</a>.
+ </li>
+ <li>
On Win32 implement horizontal scrolling mouse wheel.
<a href="https://sourceforge.net/p/scintilla/feature-requests/1450/">Feature #1450</a>.
</li>
diff --git a/src/Editor.cxx b/src/Editor.cxx
index 32a63f14a..97c141bae 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -6242,7 +6242,7 @@ sptr_t Editor::WndProc(Message iMessage, uptr_t wParam, sptr_t lParam) {
case Message::LineScroll:
ScrollTo(topLine + lParam);
- HorizontalScrollTo(xOffset + static_cast<int>(wParam) * static_cast<int>(vs.spaceWidth));
+ HorizontalScrollTo(xOffset + static_cast<int>(static_cast<int>(wParam) * vs.spaceWidth));
return 1;
case Message::SetXOffset: