diff options
Diffstat (limited to 'src/edit.c')
-rw-r--r-- | src/edit.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/edit.c b/src/edit.c index f41af9347b..873d5b5898 100644 --- a/src/edit.c +++ b/src/edit.c @@ -5643,6 +5643,11 @@ comp_textwidth ( if (cmdwin_type != 0) textwidth -= 1; textwidth -= curwin->w_p_fdc; + + if (curwin->w_buffer->b_signlist != NULL) { + textwidth -= 1; + } + if (curwin->w_p_nu || curwin->w_p_rnu) textwidth -= 8; } |