diff options
-rw-r--r-- | doc/ScintillaHistory.html | 12 | ||||
-rw-r--r-- | src/Editor.cxx | 1 |
2 files changed, 13 insertions, 0 deletions
diff --git a/doc/ScintillaHistory.html b/doc/ScintillaHistory.html index b172f83bd..d19e64383 100644 --- a/doc/ScintillaHistory.html +++ b/doc/ScintillaHistory.html @@ -535,6 +535,18 @@ </li> </ul> <h3> + <a href="https://www.scintilla.org/scite405.zip">Release 4.0.5</a> + </h3> + <ul> + <li> + Released 10 April 2018. + </li> + <li> + Set the last X chosen when SCI_REPLACESEL called to ensure macros work + when text insertion followed by caret up or down. + </li> + </ul> + <h3> <a href="https://www.scintilla.org/scite404.zip">Release 4.0.4</a> </h3> <ul> 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; |