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
commit5386325b49399a8868909d93b0068a88bcf1d6f6 (patch)
tree40548e405c76a03e368ffd8e6fb921fc0127127c /src/Editor.cxx
parent43e925e659a8ab2fd091be81505ed82fe94e9c58 (diff)
downloadscintilla-mirror-5386325b49399a8868909d93b0068a88bcf1d6f6.tar.gz
Set the last X chosen when SCI_REPLACESEL called to ensure macros work when text
insertion followed by line up or down.
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 80e32d1ae..16348864d 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;