diff options
author | nyamatongwe <unknown> | 2009-10-11 05:45:27 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2009-10-11 05:45:27 +0000 |
commit | e7ac3b0ca3221f791b522e5a215f303c08f046ab (patch) | |
tree | 4f30f2ce2102366bac2f682c64ee6ccd5dc905bd /src/Editor.cxx | |
parent | 310b2e88d1f4ded7dce3abd6b08b2f3b8fc2faeb (diff) | |
download | scintilla-mirror-e7ac3b0ca3221f791b522e5a215f303c08f046ab.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; |