aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Editor.cxx
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2018-04-11 10:39:50 +1000
committerNeil <nyamatongwe@gmail.com>2018-04-11 10:39:50 +1000
commitd51beee2ede9d640e25eaf3b215acb7638ba707d (patch)
tree3f738ee1a462a1321469ee9c2890f5863e5853c6 /src/Editor.cxx
parentfa358efdca7967a595abbc81d838be9a0bde1e91 (diff)
downloadscintilla-mirror-d51beee2ede9d640e25eaf3b215acb7638ba707d.tar.gz
Backport: Set the last X chosen when SCI_REPLACESEL called to ensure macros work when text
insertion followed by line up or down. Backport of changeset 6679:480de02f71f2.
Diffstat (limited to 'src/Editor.cxx')
-rw-r--r--src/Editor.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx
index 27eb840ad..708210e27 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -5948,6 +5948,7 @@ sptr_t Editor::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam) {
const Sci::Position lengthInserted = pdoc->InsertString(
sel.MainCaret(), replacement, istrlen(replacement));
SetEmptySelection(sel.MainCaret() + lengthInserted);
+ SetLastXChosen();
EnsureCaretVisible();
}
break;