]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.2.0919: screen: the wrong array is copied into ScreenCols on a resize v9.2.0919
authorHirohito Higashi <h.east.727@gmail.com>
Thu, 6 Aug 2026 19:38:04 +0000 (19:38 +0000)
committerChristian Brabandt <cb@256bit.org>
Thu, 6 Aug 2026 19:38:04 +0000 (19:38 +0000)
commit1989e9922a0ac2fddb0085b490bc10cd232ca598
treeb7428943c403ff492ff6cf210a74dc4fbaed8831
parent1ae09867ff36a85b0328d43fb5672067fb5b3409
patch 9.2.0919: screen: the wrong array is copied into ScreenCols on a resize

Problem:  When the screen is resized without clearing, screenalloc() copies
          ScreenAttrs[] into the new ScreenCols[] instead of using
          ScreenCols[], so the virtual columns are replaced by attribute
          values.  Since colnr_T is twice the size of sattr_T it also
          reads twice the intended number of bytes.
Solution: Copy from ScreenCols[].

closes: #20961

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Signed-off-by: Hirohito Higashi <h.east.727@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/screen.c
src/version.c