diff options
| author | nyamatongwe <unknown> | 2000-06-21 04:39:33 +0000 | 
|---|---|---|
| committer | nyamatongwe <unknown> | 2000-06-21 04:39:33 +0000 | 
| commit | b6aa84d73f7df6d3fa8dbe46c01aec9d8f307853 (patch) | |
| tree | cc863aeec05c0d357e84909dd2ed3f4b713d539a | |
| parent | e7729d12b8676528ab5bfecf58d586ac1fbafeb1 (diff) | |
| download | scintilla-mirror-b6aa84d73f7df6d3fa8dbe46c01aec9d8f307853.tar.gz | |
GetLineEndPosition exposed.
| -rw-r--r-- | include/Scintilla.h | 1 | ||||
| -rw-r--r-- | include/Scintilla.iface | 3 | ||||
| -rw-r--r-- | src/Editor.cxx | 5 | 
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; | 
