1
0
forked from aniani/vim

Add 'relativenumber' patch from Markus Heidelberg.

This commit is contained in:
Bram Moolenaar
2010-05-16 15:46:46 +02:00
parent 13c4c5da67
commit 64486671c3
22 changed files with 204 additions and 62 deletions

View File

@@ -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)