diff options
author | nyamatongwe <devnull@localhost> | 2000-06-08 10:13:35 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2000-06-08 10:13:35 +0000 |
commit | ff0018fbc36d8c93814b9cb3d0df53bafd4ef6b6 (patch) | |
tree | b6f995d8a0da6e0aced8372b4fd598304fe02437 /src/Editor.cxx | |
parent | f3fa55b3b910e4949cb2dda8cf24fb15aec84ecf (diff) | |
download | scintilla-mirror-ff0018fbc36d8c93814b9cb3d0df53bafd4ef6b6.tar.gz |
Added GetColumn that determines the column of a position.
Diffstat (limited to 'src/Editor.cxx')
-rw-r--r-- | src/Editor.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx index f753e35ce..e13fe1a2e 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -2995,6 +2995,7 @@ LRESULT Editor::WndProc(UINT iMessage, WPARAM wParam, LPARAM lParam) { nEnd = pdoc->Length(); if (nStart < 0) nStart = nEnd; // Remove selection + selType = selStream; SetSelection(nEnd, nStart); EnsureCaretVisible(); } @@ -3004,6 +3005,7 @@ LRESULT Editor::WndProc(UINT iMessage, WPARAM wParam, LPARAM lParam) { if (lParam == 0) return 0; CHARRANGE *pCR = reinterpret_cast<CHARRANGE *>(lParam); + selType = selStream; if (pCR->cpMax == -1) { SetSelection(pCR->cpMin, pdoc->Length()); } else { @@ -3409,6 +3411,9 @@ LRESULT Editor::WndProc(UINT iMessage, WPARAM wParam, LPARAM lParam) { case SCI_GETLINEINDENTPOSITION: return pdoc->GetLineIndentPosition(wParam); + + case SCI_GETCOLUMN: + return pdoc->GetColumn(wParam); case SCI_SETHSCROLLBAR : horizontalScrollBarVisible = wParam; |