]> git.lyx.org Git - lyx.git/commitdiff
Select word on double click even when at boundary
authorScott Kostyshak <skostysh@lyx.org>
Fri, 13 Jun 2014 13:43:26 +0000 (09:43 -0400)
committerScott Kostyshak <skostysh@lyx.org>
Fri, 13 Jun 2014 14:48:49 +0000 (10:48 -0400)
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).

src/Text3.cpp

index ccd8de3c7acdaa95125d93adc7ae75919ead8b12..79711f43732769b8555e611328e9b74d0588ef3a 100644 (file)
@@ -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;