From: Scott Kostyshak Date: Fri, 13 Jun 2014 13:43:26 +0000 (-0400) Subject: Backport 'select word on double click at boundary' X-Git-Tag: 2.1.2~41 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=63f980bc040581d6ac0f25a8521978afae1ed316;p=features.git Backport 'select word on double click 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). Backported from bcbc162. --- diff --git a/src/Text3.cpp b/src/Text3.cpp index 41e47a5583..5231391411 100644 --- a/src/Text3.cpp +++ b/src/Text3.cpp @@ -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; diff --git a/status.21x b/status.21x index 46333c2f2b..7b7e6d2c9a 100644 --- a/status.21x +++ b/status.21x @@ -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