mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
patch 7.4.1547
Problem: Getting a cterm highlight attribute that is not set results in the string "-1". Solution: Return an empty string. (Taro Muraoka)
This commit is contained in:
@@ -8999,6 +8999,8 @@ highlight_color(
|
||||
n = HL_TABLE()[id - 1].sg_cterm_fg - 1;
|
||||
else
|
||||
n = HL_TABLE()[id - 1].sg_cterm_bg - 1;
|
||||
if (n < 0)
|
||||
return NULL;
|
||||
sprintf((char *)name, "%d", n);
|
||||
return name;
|
||||
}
|
||||
|
Reference in New Issue
Block a user