]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.1.0125: unused init of text_prop_idxs in win_line() v9.1.0125
authorDylan Thacker-Smith <dylan.ah.smith@gmail.com>
Wed, 21 Feb 2024 20:03:10 +0000 (21:03 +0100)
committerChristian Brabandt <cb@256bit.org>
Wed, 21 Feb 2024 20:03:10 +0000 (21:03 +0100)
commit83925be1e68445f7f6a377b7735f93fbc8689003
treecd6d0793151d641ef064fe4e5fdd3188201355da
parent8055721c2d30f21cfabe7453014f526e7becfc06
patch 9.1.0125: unused init of text_prop_idxs in win_line()

Problem:  unused init of text_prop_idxs in win_line
Solution: Remove it, fix typo
          (Dylan Thacker-Smith)

Later use of text_prop_idxs treats it as empty, incrementing
text_props_active as new elements are added to this array, so remove
this unused conditional initialization when text_props_active is 0.

closes: #14063

Signed-off-by: Dylan Thacker-Smith <dylan.ah.smith@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/drawline.c
src/version.c