mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
Fix entering inset in visual cursor mode
Improve the test whether cursor has moved in Cursor::posVisLeft. The code for posVisRight had already been fixed for #5764 at 0730c923
, but this replaces both tests by the proper == operator.
Fixes bug #9913.
This commit is contained in:
parent
e2a16f1c9a
commit
d3c0044617
@ -744,10 +744,7 @@ bool Cursor::posVisRight(bool skip_inset)
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool moved = (new_cur.pos() != pos()
|
bool const moved = new_cur != *this || new_cur.boundary() != boundary();
|
||||||
|| new_cur.pit() != pit()
|
|
||||||
|| new_cur.boundary() != boundary()
|
|
||||||
|| &new_cur.inset() != &inset());
|
|
||||||
|
|
||||||
if (moved) {
|
if (moved) {
|
||||||
LYXERR(Debug::RTL, "moving to: " << new_cur.pos()
|
LYXERR(Debug::RTL, "moving to: " << new_cur.pos()
|
||||||
@ -843,9 +840,7 @@ bool Cursor::posVisLeft(bool skip_inset)
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool moved = (new_cur.pos() != pos()
|
bool const moved = new_cur != *this || new_cur.boundary() != boundary();
|
||||||
|| new_cur.pit() != pit()
|
|
||||||
|| new_cur.boundary() != boundary());
|
|
||||||
|
|
||||||
if (moved) {
|
if (moved) {
|
||||||
LYXERR(Debug::RTL, "moving to: " << new_cur.pos()
|
LYXERR(Debug::RTL, "moving to: " << new_cur.pos()
|
||||||
|
Loading…
Reference in New Issue
Block a user