aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2021-08-25 08:21:33 +1000
committerNeil <nyamatongwe@gmail.com>2021-08-25 08:21:33 +1000
commitbb75e40bca7a6d81eb4070a7b67950119dc4b8b5 (patch)
treec90d62fb94bbc96736a8027a0e02dd784826eb59 /src
parentdc0398d650e75efe9641f0c48d630f2c2027281a (diff)
downloadscintilla-mirror-bb75e40bca7a6d81eb4070a7b67950119dc4b8b5.tar.gz
Allow SCI_HIDELINES to hide the first line or all lines.
Diffstat (limited to 'src')
-rw-r--r--src/ContractionState.cxx2
-rw-r--r--src/Editor.cxx3
2 files changed, 2 insertions, 3 deletions
diff --git a/src/ContractionState.cxx b/src/ContractionState.cxx
index 199b3cb78..68724ebab 100644
--- a/src/ContractionState.cxx
+++ b/src/ContractionState.cxx
@@ -197,7 +197,7 @@ Sci::Line ContractionState<LINE>::DocFromDisplay(Sci::Line lineDisplay) const no
if (OneToOne()) {
return lineDisplay;
} else {
- if (lineDisplay <= 0) {
+ if (lineDisplay < 0) {
return 0;
}
if (lineDisplay > LinesDisplayed()) {
diff --git a/src/Editor.cxx b/src/Editor.cxx
index 341165776..1fed61e36 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -7409,8 +7409,7 @@ sptr_t Editor::WndProc(Message iMessage, uptr_t wParam, sptr_t lParam) {
break;
case Message::HideLines:
- if (wParam > 0)
- pcs->SetVisible(LineFromUPtr(wParam), lParam, false);
+ pcs->SetVisible(LineFromUPtr(wParam), lParam, false);
SetScrollBars();
Redraw();
break;