]> git.lyx.org Git - lyx.git/commit
Fix word selection expansion when going to the left
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 6 Nov 2023 10:53:03 +0000 (11:53 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 6 Nov 2023 10:53:03 +0000 (11:53 +0100)
commit04a24211a6e5d98c982dcc8b2b4e22f9c2ca27e2
treea594203dc2f355e6bbd65a39fd8c52d0afcef5fe
parent1677bc5fcde86b3e13ba0c2fbfa2b380c1c81dbb
Fix word selection expansion when going to the left

The proper way to do word-wise selection is to compute the words
around both the cursor and the anchor.

Note that code is uglier than it should because CursorData::normalAnchor()
returns a CursorSlice instead of a DocIterator.

Fixes bug #12533.
src/Cursor.h
src/Text.cpp