mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
patch 9.1.1150: :hi completion may complete to wrong value
Problem: :highlight auto-complettion has a minor bug where an existing highlight group with a cterm color being unset would result in it being auto-completed to -1 in cmdline which is invalid. Solution: Correctly check for whether an int value is set to non-zero before retrieving the existing value for auto-complete. Also do this for attr/string values as they previously worked only by accident (Yee Cheng Chin). closes: #16726 Signed-off-by: Yee Cheng Chin <ychin.git@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
aa8345a968
commit
9b41e8f766
@@ -704,6 +704,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
1150,
|
||||
/**/
|
||||
1149,
|
||||
/**/
|
||||
|
Reference in New Issue
Block a user