diff options
author | XhmikosR <xhmikosr@users.sourceforge.net> | 2013-01-04 09:18:42 +0200 |
---|---|---|
committer | XhmikosR <xhmikosr@users.sourceforge.net> | 2013-01-08 10:49:13 +0200 |
commit | 1f6d96fe55c4b72a0d70eb004fec81d505ac086c (patch) | |
tree | cac31679890975e28e91b2cefd7cf5c0c77c89bb /scintilla/src | |
parent | 9fcba15122396be5990eab5e6965597e43d7f628 (diff) | |
download | notepad2-mod-1f6d96fe55c4b72a0d70eb004fec81d505ac086c.zip notepad2-mod-1f6d96fe55c4b72a0d70eb004fec81d505ac086c.tar.gz notepad2-mod-1f6d96fe55c4b72a0d70eb004fec81d505ac086c.tar.bz2 |
update scintilla (6b112bb4db2c)
Diffstat (limited to 'scintilla/src')
-rw-r--r-- | scintilla/src/Editor.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scintilla/src/Editor.cxx b/scintilla/src/Editor.cxx index 9d7ab1d..ceb2fa7 100644 --- a/scintilla/src/Editor.cxx +++ b/scintilla/src/Editor.cxx @@ -5169,6 +5169,8 @@ int Editor::KeyCommand(unsigned int iMessage) { SelectionPosition spCaret = sel.RangeMain().caret;
spCaret.SetVirtualSpace(spCaret.VirtualSpace() - 1);
MovePositionTo(spCaret);
+ } else if (sel.MoveExtends() && sel.selType == Selection::selStream) {
+ MovePositionTo(MovePositionSoVisible(SelectionPosition(sel.MainCaret() - 1), -1));
} else {
MovePositionTo(MovePositionSoVisible(
SelectionPosition((sel.LimitsForRectangularElseMain().start).Position() - 1), -1));
@@ -5204,6 +5206,8 @@ int Editor::KeyCommand(unsigned int iMessage) { SelectionPosition spCaret = sel.RangeMain().caret;
spCaret.SetVirtualSpace(spCaret.VirtualSpace() + 1);
MovePositionTo(spCaret);
+ } else if (sel.MoveExtends() && sel.selType == Selection::selStream) {
+ MovePositionTo(MovePositionSoVisible(SelectionPosition(sel.MainCaret() + 1), 1));
} else {
MovePositionTo(MovePositionSoVisible(
SelectionPosition((sel.LimitsForRectangularElseMain().end).Position() + 1), 1));
|