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).
This commit is contained in:
Scott Kostyshak 2014-06-13 09:43:26 -04:00
parent 01ba22efff
commit bcbc162665

View 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;