summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcos <cos>2018-07-02 21:03:40 +0200
committercos <cos>2018-07-02 21:09:15 +0200
commit8839f1b9b74b90eb5069a28386cf894039f8a73b (patch)
tree3f85a8f57ab9512538d19b82fec3edb719ca2395
parent15c0d8e45ed16e3fbc84c5ddb8ef6499ed3f6413 (diff)
downloadvim-8839f1b9b74b90eb5069a28386cf894039f8a73b.zip
Also implement zero 'numberwidth' for folds
-rw-r--r--src/screen.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/screen.c b/src/screen.c
index 6ddd84259..82621a3c4 100644
--- a/src/screen.c
+++ b/src/screen.c
@@ -2763,10 +2763,14 @@ fold_line(
/*
* 3. Add the 'number' or 'relativenumber' column
*/
- if (wp->w_p_nu || wp->w_p_rnu)
+ if (wp->w_p_nu
+#ifdef FEAT_LINEBREAK
+ || wp->w_p_rnu
+#endif
+ )
{
len = wp->w_width - col;
- if (len > 0)
+ if (len > 0 && wp->w_p_nuw > 0)
{
int w = number_width(wp);
long num;