]> git.lyx.org Git - features.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>
Fri, 29 Sep 2017 08:33:21 +0000 (10:33 +0200)
commit764a153c69bb9b46a6e6872ce48e06f5f867cc53
treecbb183da615c6bcbecfc1abc95a644afdb5cd2e8
parentd6aecbda0f5929ab04805ac6e19cd48f3c4a059b
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.
src/BufferView.cpp