aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <unknown>2001-10-26 00:26:50 +0000
committernyamatongwe <unknown>2001-10-26 00:26:50 +0000
commitafcb7dbf5ce5a1e8ae2b8b7c0c40643b1b19be9c (patch)
tree672195639ffb1cc97e9832d23486cc371fc5e897
parent6c9f4d9c8fd046f52a308d7072ce9292cd8645c9 (diff)
downloadscintilla-mirror-afcb7dbf5ce5a1e8ae2b8b7c0c40643b1b19be9c.tar.gz
Ensured no flashing when selecting by words and direction is changed.
-rw-r--r--src/Editor.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx
index 2898d9665..15ba91b20 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -3126,7 +3126,7 @@ void Editor::ButtonMove(Point pt) {
SetSelection(movePos);
} else if (selectionType == selWord) {
// Continue selecting by word
- if (currentPos > originalAnchorPos) { // Moved forward
+ if (movePos >= originalAnchorPos) { // Moved forward
SetSelection(pdoc->ExtendWordSelect(movePos, 1),
pdoc->ExtendWordSelect(originalAnchorPos, -1));
} else { // Moved backward