diff options
author | nyamatongwe <devnull@localhost> | 2009-10-11 05:45:27 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2009-10-11 05:45:27 +0000 |
commit | 1aa01f95869bae53f52a501b7970977c6963f8cc (patch) | |
tree | 4f30f2ce2102366bac2f682c64ee6ccd5dc905bd /src/Editor.cxx | |
parent | bc6c607302bf51775d73b30758c465ab6b872ddf (diff) | |
download | scintilla-mirror-1aa01f95869bae53f52a501b7970977c6963f8cc.tar.gz |
Fix bug #2871358 where left or right key with rectangular selection
moved to a left or right of main selection rather than before or after
rectangular selection.
Diffstat (limited to 'src/Editor.cxx')
-rw-r--r-- | src/Editor.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx index 61008613d..45cf73bec 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -4685,7 +4685,7 @@ int Editor::KeyCommand(unsigned int iMessage) { MovePositionTo(MovePositionSoVisible(SelectionPosition(sel.MainCaret() - 1), -1)); } } else { - MovePositionTo(sel.RangeMain().Start()); + MovePositionTo(sel.IsRectangular() ? sel.Limits().start : sel.RangeMain().Start()); } SetLastXChosen(); break; @@ -4719,7 +4719,7 @@ int Editor::KeyCommand(unsigned int iMessage) { MovePositionTo(MovePositionSoVisible(SelectionPosition(sel.MainCaret() + 1), 1)); } } else { - MovePositionTo(sel.RangeMain().End()); + MovePositionTo(sel.IsRectangular() ? sel.Limits().end : sel.RangeMain().End()); } SetLastXChosen(); break; |