]> git.lyx.org Git - features.git/commitdiff
Backport 'select word on double click at boundary'
authorScott Kostyshak <skostysh@lyx.org>
Fri, 13 Jun 2014 13:43:26 +0000 (09:43 -0400)
committerScott Kostyshak <skostysh@lyx.org>
Sat, 26 Jul 2014 21:30:56 +0000 (17:30 -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).

Backported from bcbc162.

src/Text3.cpp
status.21x

index 41e47a5583616ea67c5c0edfed610c4fe17b37fc..523139141167b9c99aa82388f0d2e37199d01390 100644 (file)
@@ -1514,7 +1514,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;
index 46333c2f2bc9a367784bfe46fd66a202977c9c6b..7b7e6d2c9a97e1302578942e9064e04bd7784632 100644 (file)
@@ -63,6 +63,7 @@ What's new
 * USER INTERFACE
 
 - Do not forget last words of paragraphs in completion possibilities.
+- Select word on double click even when at boundary (#9159).
 
 
 * INTERNALS