forked from aniani/vim
patch 8.1.2229: cannot color number column above/below cursor differently
Problem: Cannot color number column above/below cursor differently. Solution: Add LineNrAbove and LineNrBelow. (Shaun Brady, closes #624)
This commit is contained in:
@@ -1127,6 +1127,16 @@ win_line(
|
||||
|| wp->w_p_culopt_flags & CULOPT_LINE))
|
||||
char_attr = hl_combine_attr(wcr_attr, HL_ATTR(HLF_CLN));
|
||||
#endif
|
||||
if (wp->w_p_rnu && lnum < wp->w_cursor.lnum
|
||||
&& HL_ATTR(HLF_LNA) != 0)
|
||||
// Use LineNrAbove
|
||||
char_attr = hl_combine_attr(wcr_attr,
|
||||
HL_ATTR(HLF_LNA));
|
||||
if (wp->w_p_rnu && lnum > wp->w_cursor.lnum
|
||||
&& HL_ATTR(HLF_LNB) != 0)
|
||||
// Use LineNrBelow
|
||||
char_attr = hl_combine_attr(wcr_attr,
|
||||
HL_ATTR(HLF_LNB));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user