]> git.lyx.org Git - lyx.git/commit
Fix ghost caret
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 8 Jan 2018 10:49:40 +0000 (11:49 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 8 Jan 2018 10:54:57 +0000 (11:54 +0100)
commit66c677b9463feb0687a8228603f86eddd4e859fd
treea55b87c3882962d9158468027e2141740a2b7cca
parent4f21f788b468d62bb435a3f62aa3fc65becc7780
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.
src/BufferView.cpp