aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Editor.cxx
diff options
context:
space:
mode:
authorMook <marky@activestate.com>2013-02-25 15:20:58 -0800
committerMook <marky@activestate.com>2013-02-25 15:20:58 -0800
commit124b2f79616f21eb4189a45bead308c628b56242 (patch)
tree68f3bd9a2d1eca34f8bd3e411a4baf2a43a032e6 /src/Editor.cxx
parentc73567a8b582af6150c24cf54aa731e2ff8cbf96 (diff)
downloadscintilla-mirror-124b2f79616f21eb4189a45bead308c628b56242.tar.gz
Editor: SCI_LINESCROLL: treat columns as signed
Diffstat (limited to 'src/Editor.cxx')
-rw-r--r--src/Editor.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx
index e5c997cf4..8ad36ef33 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -7414,7 +7414,7 @@ sptr_t Editor::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam) {
case SCI_LINESCROLL:
ScrollTo(topLine + lParam);
- HorizontalScrollTo(xOffset + wParam * vs.spaceWidth);
+ HorizontalScrollTo(xOffset + static_cast<int>(wParam) * vs.spaceWidth);
return 1;
case SCI_SETXOFFSET: