updated for version 7.4.664
Problem: When 'compatible' is reset 'numberwidth' is set to 4, but the
effect doesn't show until a change is made.
Solution: Check if 'numberwidth' changed. (Christian Brabandt)
diff --git a/src/screen.c b/src/screen.c
index 6816503..1d4fdd3 100644
--- a/src/screen.c
+++ b/src/screen.c
@@ -10718,7 +10718,7 @@
/* cursor line shows absolute line number */
lnum = wp->w_buffer->b_ml.ml_line_count;
- if (lnum == wp->w_nrwidth_line_count)
+ if (lnum == wp->w_nrwidth_line_count && wp->w_nuw_cached == wp->w_p_nuw)
return wp->w_nrwidth_width;
wp->w_nrwidth_line_count = lnum;
@@ -10734,6 +10734,7 @@
n = wp->w_p_nuw - 1;
wp->w_nrwidth_width = n;
+ wp->w_nuw_cached = wp->w_p_nuw;
return n;
}
#endif