summaryrefslogtreecommitdiffstats
path: root/src/edit.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2010-05-16 15:46:46 +0200
committerBram Moolenaar <Bram@vim.org>2010-05-16 15:46:46 +0200
commit64486671c3fcc75698c57732c50865ad0573b3fe (patch)
tree2e638c57e838549b6c314984b2405c25b2e4c175 /src/edit.c
parent13c4c5da673c488d2d340c72f401f0631b9f669d (diff)
Add 'relativenumber' patch from Markus Heidelberg.
Diffstat (limited to 'src/edit.c')
-rw-r--r--src/edit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/edit.c b/src/edit.c
index 33e580f1b9..88943cd7f4 100644
--- a/src/edit.c
+++ b/src/edit.c
@@ -6272,7 +6272,7 @@ comp_textwidth(ff)
)
textwidth -= 1;
#endif
- if (curwin->w_p_nu)
+ if (curwin->w_p_nu || curwin->w_p_rnu)
textwidth -= 8;
}
if (textwidth < 0)