commit bcbc1626659601adaff6b573afd2e48dfea0b7d4
Author: Scott Kostyshak <[email protected]>
Date: Fri Jun 13 09:43:26 2014 -0400
Select word on double click even when at boundary
Now when double clicking on a boundary of a word, the
word is selected. This also causes single-letter words
to now be selected (fixes #9159).
diff --git a/src/Text3.cpp b/src/Text3.cpp
index ccd8de3..79711f4 100644
--- a/src/Text3.cpp
+++ b/src/Text3.cpp
@@ -1538,7 +1538,7 @@ void Text::dispatch(Cursor & cur, FuncRequest & cmd)
case LFUN_MOUSE_DOUBLE:
if (cmd.button() == mouse_button::button1) {
- selectWord(cur, WHOLE_WORD_STRICT);
+ selectWord(cur, WHOLE_WORD);
bv->cursor() = cur;
}
break;