aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2008-08-03 08:19:03 +0000
committernyamatongwe <devnull@localhost>2008-08-03 08:19:03 +0000
commit1174ecf6decf3c0dea9ef2348bcb91980e3f7b29 (patch)
tree94b62a92bd4269f1a4aabac0851e91e9159142b2 /src
parentf659dbbc9b44f8d8e217faa7ae7d1c2229052a6c (diff)
downloadscintilla-mirror-1174ecf6decf3c0dea9ef2348bcb91980e3f7b29.tar.gz
For bug #2030324 codument that HideLines can not hide line 0 and
stop this from causing crash in code.
Diffstat (limited to 'src')
-rw-r--r--src/Editor.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx
index 95664e2b1..c72fc96d0 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -7027,7 +7027,8 @@ sptr_t Editor::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam) {
break;
case SCI_HIDELINES:
- cs.SetVisible(wParam, lParam, false);
+ if (wParam > 0)
+ cs.SetVisible(wParam, lParam, false);
SetScrollBars();
Redraw();
break;