aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorZufu Liu <unknown>2022-09-30 09:31:14 +1000
committerZufu Liu <unknown>2022-09-30 09:31:14 +1000
commit64a090697a4ce072addd4f9ea6aadca5f6cd9a86 (patch)
tree40d05651f18cef26f20b9ec1565f7bd3a0077b4d /src
parentf35107b93b04e080b66e32dbc68688b9431c8364 (diff)
downloadscintilla-mirror-64a090697a4ce072addd4f9ea6aadca5f6cd9a86.tar.gz
Bug [#2357]. Make SCI_LINESCROLL more accurate when width of space not integer.
Diffstat (limited to 'src')
-rw-r--r--src/Editor.cxx2
1 files changed, 1 insertions, 1 deletions
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: