]> 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>
Fri, 27 Apr 2018 09:46:44 +0000 (11:46 +0200)
commitbe62d98dcf5cab618df4e7f9fd3501b8ce01f311
tree89e5d620fc5f512915168a5379bf5163b91c5ad3
parent5c6bc52b1b7dc76e13b5602dd1bcc0e699a74187
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.

(cherry picked from commit 2f1eb35b868aaa5adb83ff358c2468551e25685e)
src/BufferView.cpp
src/BufferView.h
src/TextMetrics.cpp