forked from aniani/vim
Add 'relativenumber' patch from Markus Heidelberg.
This commit is contained in:
@@ -1742,7 +1742,7 @@ plines_win_nofold(wp, lnum)
|
||||
col += 1;
|
||||
|
||||
/*
|
||||
* Add column offset for 'number' and 'foldcolumn'.
|
||||
* Add column offset for 'number', 'relativenumber' and 'foldcolumn'.
|
||||
*/
|
||||
width = W_WIDTH(wp) - win_col_off(wp);
|
||||
if (width <= 0)
|
||||
@@ -1803,7 +1803,7 @@ plines_win_col(wp, lnum, column)
|
||||
col += win_lbr_chartabsize(wp, s, (colnr_T)col, NULL) - 1;
|
||||
|
||||
/*
|
||||
* Add column offset for 'number', 'foldcolumn', etc.
|
||||
* Add column offset for 'number', 'relativenumber', 'foldcolumn', etc.
|
||||
*/
|
||||
width = W_WIDTH(wp) - win_col_off(wp);
|
||||
if (width <= 0)
|
||||
|
Reference in New Issue
Block a user