]> git.lyx.org Git - lyx.git/commit
Improve the logic of caret repainting
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 29 Sep 2017 08:29:39 +0000 (10:29 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 15 Feb 2018 11:29:25 +0000 (12:29 +0100)
commit6bd158dcba851beb4c22f8aa79a572b21f1a16d0
tree4856d76235ea3a87c99ad97c8249622a4f0f2ec4
parentf6cbc08a7db3c2185b6eae768c026c58f577b0bc
Improve the logic of caret repainting

For some reason the existing code only considered the bottom row that
contained the cursor. There is no need for that, and actually it
caused painting problems in nested insets.

Tweak the logic of repaint_caret_row_ a bit: there is no need for
repainting when there is currently no caret on screen.

(cherry picked from commit 764a153c69bb9b46a6e6872ce48e06f5f867cc53)
src/BufferView.cpp