diff options
author | nyamatongwe <unknown> | 2009-07-21 08:19:28 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2009-07-21 08:19:28 +0000 |
commit | 74fc1b126280c1f928dd8a8fb54bc174b92187b4 (patch) | |
tree | b33f67eee05d1296114dc5dc71d058723d678989 /src/Editor.cxx | |
parent | 0ea7c707827ec481e385d765ae87f0903735d70e (diff) | |
download | scintilla-mirror-74fc1b126280c1f928dd8a8fb54bc174b92187b4.tar.gz |
Added commands for rotating selections and swapping caret and anchor of
main selection.
Diffstat (limited to 'src/Editor.cxx')
-rw-r--r-- | src/Editor.cxx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx index 3085bd6ec..317b3f4a6 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -8289,6 +8289,16 @@ sptr_t Editor::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam) { case SCI_GETADDITIONALCARETFORE: return vs.additionalCaretColour.desired.AsLong(); + case SCI_ROTATESELECTION: + sel.RotateMain(); + InvalidateSelection(sel.RangeMain(), true); + break; + + case SCI_SWAPMAINANCHORCARET: + InvalidateSelection(sel.RangeMain()); + sel.RangeMain() = SelectionRange(sel.RangeMain().anchor, sel.RangeMain().caret); + break; + default: return DefWndProc(iMessage, wParam, lParam); } |