]> git.lyx.org Git - features.git/commit
Fix selection at borders of insets (#9487)
authorScott Kostyshak <skostysh@lyx.org>
Tue, 31 Mar 2015 16:53:23 +0000 (12:53 -0400)
committerScott Kostyshak <skostysh@lyx.org>
Fri, 3 Apr 2015 18:24:28 +0000 (14:24 -0400)
commit032da815fabf5478b447cc5b093ca2a44d72ae2f
tree388e092dea76b6d44437211ef13601508f1dd0cf
parent26f0ee1eb3ea5133beff8ee1d05923dbd77730a7
Fix selection at borders of insets (#9487)

When at the last position in an inset, selecting to the right
should select the entire inset. This only worked if there was
already a selection (i.e. the selection was started not at the
boundary).

The behavior of this bug was changed by commit 73a7bf9d.  Before
that commit, if at the last position of an inset you select to
the right, nothing is selected but the selection is set. If you
select once more to the right, because the selection is set the
needsUpdate condition is satisfied so the whole inset is selected.

Note that everything here applies also to "first position of an
inset" and selecting to the left. By "selecting", I am referring
to LFUN_{CHAR,WORD}_{FORWARD,BACKWARD}_SELECT.
src/Text3.cpp