aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2000-06-21 04:39:33 +0000
committernyamatongwe <devnull@localhost>2000-06-21 04:39:33 +0000
commit7b0e16f00f59aeec2d38fd71d5279e7bd6f1a3b5 (patch)
treecc863aeec05c0d357e84909dd2ed3f4b713d539a
parent6d3878dca546f21822b087d70bea23db9437c0a9 (diff)
downloadscintilla-mirror-7b0e16f00f59aeec2d38fd71d5279e7bd6f1a3b5.tar.gz
GetLineEndPosition exposed.
-rw-r--r--include/Scintilla.h1
-rw-r--r--include/Scintilla.iface3
-rw-r--r--src/Editor.cxx5
3 files changed, 8 insertions, 1 deletions
diff --git a/include/Scintilla.h b/include/Scintilla.h
index 9f42fef0f..7640dfaa8 100644
--- a/include/Scintilla.h
+++ b/include/Scintilla.h
@@ -226,6 +226,7 @@ void Scintilla_RegisterClasses(HINSTANCE hInstance);
#define SCI_GETINDENTATIONGUIDES SCI_START + 133
#define SCI_SETHIGHLIGHTGUIDE SCI_START + 134
#define SCI_GETHIGHLIGHTGUIDE SCI_START + 135
+#define SCI_GETLINEENDPOSITION SCI_START + 136
#define SCI_CALLTIPSHOW SCI_START + 200
#define SCI_CALLTIPCANCEL SCI_START + 201
diff --git a/include/Scintilla.iface b/include/Scintilla.iface
index f3eec65df..1343cbfdc 100644
--- a/include/Scintilla.iface
+++ b/include/Scintilla.iface
@@ -463,6 +463,9 @@ set void SetHighlightGuide=2134(int column,)
# Get the highlighted indentation guide column.
get int GetHighlightGuide=2135(,)
+# Get the position after the last visible characters on a line.
+get int GetLineEndPosition=2136(int line,)
+
# Show a call tip containing a definition near position pos.
fun void CallTipShow=2200(position pos, string definition)
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;