aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Editor.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx
index 8596eb8f9..e6ddd3874 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -3493,7 +3493,7 @@ LRESULT Editor::WndProc(UINT iMessage, WPARAM wParam, LPARAM lParam) {
return vs.viewIndentationGuides;
case SCI_SETHIGHLIGHTGUIDE:
- if (highlightGuideColumn != wParam) {
+ if ((highlightGuideColumn != static_cast<int>(wParam)) || (wParam > 0)) {
highlightGuideColumn = wParam;
Redraw();
}
@@ -3502,6 +3502,9 @@ LRESULT Editor::WndProc(UINT iMessage, WPARAM wParam, LPARAM lParam) {
case SCI_GETHIGHLIGHTGUIDE:
return highlightGuideColumn;
+ case SCI_GETLINEENDPOSITION:
+ return pdoc->LineEnd(wParam);
+
case SCI_SETCODEPAGE:
pdoc->dbcsCodePage = wParam;
break;