]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.1.0100: Redrawing can be improved with undo and 'spell' v9.1.0100
authorzeertzjq <zeertzjq@outlook.com>
Mon, 12 Feb 2024 19:28:01 +0000 (20:28 +0100)
committerChristian Brabandt <cb@256bit.org>
Mon, 12 Feb 2024 19:28:01 +0000 (20:28 +0100)
commitf2d90a351159fd6843f450850f52004f42e00183
treeb568a8b2eaf3cc33bba3af800c14f613b2b18cc3
parenta0010a186d93187d2b69b857d75db8a1e01049bb
patch 9.1.0100: Redrawing can be improved with undo and 'spell'

Problem:  When undoing with 'spell', redrawWinline() is called after
          changed_lines(), while later win_update() sets redraw type to
          UPD_NOT_VALID, even though w_redraw_top and w_redraw_bot are
          still valid.
Solution: Only set redraw type to UPD_NOT_VALID when inserting/deleting
          lines after parts of window has pending redraw, i.e., when
          changed_lines() is called after redrawWinline().
          (zeertzjq)

closes: #14019

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/change.c
src/drawscreen.c
src/popupwin.c
src/version.c