]> git.lyx.org Git - features.git/commit
Rework caret display code
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 18 Apr 2018 08:10:08 +0000 (10:10 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 26 Apr 2018 21:25:31 +0000 (23:25 +0200)
commit2f1eb35b868aaa5adb83ff358c2468551e25685e
treefa8a6230caab62ed094fddd4ac2335cf16175601
parent5177fd1135da9a1c886760d5ef8326434f04b0ed
Rework caret display code

The new code is much simpler: what it does is, after redrawing has
been done, to mark the cursor row as changed, so that it will be
repainted on next paint event.

This avoids some crashes at the price of possibly repainting the row
when it was not necessary.
src/BufferView.cpp
src/BufferView.h
src/TextMetrics.cpp