]> git.lyx.org Git - features.git/commit
Fix ghost caret properpaint
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 8 Jan 2018 10:49:40 +0000 (11:49 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 15 Feb 2018 11:29:25 +0000 (12:29 +0100)
commit61c5769e3981825b5fef9aecf512679e94e0fc53
tree9c17ed0bbb4fb7cf9e00ee34248002f529ab0f72
parentbe35ba31bfff429330d628b848ecc7d65265590d
Fix ghost caret

This fixes a regression in e64ea357, where a test has been (badly)
tightened to avoid that two consecutive rows may be redrawn to get rid
of caret ghosts. The test prohibited empty rows from being redrawn.

Moreover, improve the test of cursor boundary to avoid the case where
cursor position is already 0.

Fixes bug #10952.

(cherry picked from commit 66c677b9463feb0687a8228603f86eddd4e859fd)
src/BufferView.cpp