From 63f980bc040581d6ac0f25a8521978afae1ed316 Mon Sep 17 00:00:00 2001 From: Scott Kostyshak Date: Fri, 13 Jun 2014 09:43:26 -0400 Subject: [PATCH] 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. --- src/Text3.cpp | 2 +- status.21x | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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 -- 2.39.5