diff options
author | Neil <nyamatongwe@gmail.com> | 2024-08-09 10:05:41 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2024-08-09 10:05:41 +1000 |
commit | 1daf2d728e95854ad648f93e6f17f8f58074d65c (patch) | |
tree | 8f183cda24d1570c2a2f4ffa4a2ccb2254d4f141 /gtk | |
parent | 0d6fd0c6bc452f41919bbdf8dcc9b3d6fbc83205 (diff) | |
download | scintilla-mirror-1daf2d728e95854ad648f93e6f17f8f58074d65c.tar.gz |
Simplify code that sets an empty selection at a position.
Diffstat (limited to 'gtk')
-rwxr-xr-x | gtk/ScintillaGTK.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gtk/ScintillaGTK.cxx b/gtk/ScintillaGTK.cxx index 4838bd58a..b40b6547d 100755 --- a/gtk/ScintillaGTK.cxx +++ b/gtk/ScintillaGTK.cxx @@ -2379,8 +2379,7 @@ void ScintillaGTK::MoveImeCarets(Sci::Position pos) { // Move carets relatively by bytes for (size_t r=0; r<sel.Count(); r++) { const Sci::Position positionInsert = sel.Range(r).Start().Position(); - sel.Range(r).caret.SetPosition(positionInsert + pos); - sel.Range(r).anchor.SetPosition(positionInsert + pos); + sel.Range(r) = SelectionRange(positionInsert + pos); } } |