Mercurial > vim
diff src/normal.c @ 2178:c6f1aa1e9f32 vim73
Add 'relativenumber' patch from Markus Heidelberg.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Sun, 16 May 2010 15:46:46 +0200 |
parents | 35effbd07a25 |
children | 8c6a66e2b3cc |
line wrap: on
line diff
--- a/src/normal.c +++ b/src/normal.c @@ -7845,8 +7845,9 @@ nv_g_cmd(cap) } else i = curwin->w_leftcol; - /* Go to the middle of the screen line. When 'number' is on and lines - * are wrapping the middle can be more to the left. */ + /* Go to the middle of the screen line. When 'number' or + * 'relativenumber' is on and lines are wrapping the middle can be more + * to the left. */ if (cap->nchar == 'm') i += (W_WIDTH(curwin) - curwin_col_off() + ((curwin->w_p_wrap && i > 0)