]> git.lyx.org Git - features.git/commit
Avoid crash when extending word selection
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 5 May 2022 08:44:45 +0000 (10:44 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 5 May 2022 09:13:29 +0000 (11:13 +0200)
commit809a063358ba6ee5ca2be27be111b0d605e0d723
tree620a8b890ed86c631447330d4e974c1cdb14dd26
parent9f30de3c5dfc036d2b0b8e51dd935c6300fc7286
Avoid crash when extending word selection

This happens when the cursor goes into a deeper inset, since
selectWord() was called on the wrong Text object.

Additionally, fix the new word selection when cursor goes before
existing selection.

Fixes bug #12529.
src/Text3.cpp