mirror of
https://github.com/vim/vim.git
synced 2025-07-04 23:07:33 -04:00
patch 8.1.0680: not easy to see what features are unavailable
Problem: Not easy to see what features are unavailable. Solution: Highlight disabled features in the :version output. (Nazri Ramliy, closes #3756)
This commit is contained in:
parent
2cbc1a02cb
commit
c85ffc9dab
@ -799,6 +799,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
680,
|
||||||
/**/
|
/**/
|
||||||
679,
|
679,
|
||||||
/**/
|
/**/
|
||||||
@ -2266,6 +2268,9 @@ list_in_columns(char_u **items, int size, int current)
|
|||||||
int nrow;
|
int nrow;
|
||||||
int item_count = 0;
|
int item_count = 0;
|
||||||
int width = 0;
|
int width = 0;
|
||||||
|
#ifdef FEAT_SYN_HL
|
||||||
|
int use_highlight = (items == (char_u **)features);
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Find the length of the longest item, use that + 1 as the column
|
/* Find the length of the longest item, use that + 1 as the column
|
||||||
* width. */
|
* width. */
|
||||||
@ -2307,7 +2312,12 @@ list_in_columns(char_u **items, int size, int current)
|
|||||||
|
|
||||||
if (idx == current)
|
if (idx == current)
|
||||||
msg_putchar('[');
|
msg_putchar('[');
|
||||||
msg_puts(items[idx]);
|
#ifdef FEAT_SYN_HL
|
||||||
|
if (use_highlight && items[idx][0] == '-')
|
||||||
|
msg_puts_attr(items[idx], HL_ATTR(HLF_W));
|
||||||
|
else
|
||||||
|
#endif
|
||||||
|
msg_puts(items[idx]);
|
||||||
if (idx == current)
|
if (idx == current)
|
||||||
msg_putchar(']');
|
msg_putchar(']');
|
||||||
if (last_col)
|
if (last_col)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user