aboutsummaryrefslogtreecommitdiff
path: root/src/edit.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2014-03-28 02:09:08 -0400
committerThiago de Arruda <tpadilha84@gmail.com>2014-03-29 20:47:39 -0300
commitd9f5cd6290755b0fc571c89db5f213844cbe9eef (patch)
treeae8e325f1cc2efbfc79cf59c7cc7f61e8ed38db8 /src/edit.c
parent28b3659955d154d04ac8e531b54f1ec32f3136a7 (diff)
downloadrneovim-d9f5cd6290755b0fc571c89db5f213844cbe9eef.tar.gz
rneovim-d9f5cd6290755b0fc571c89db5f213844cbe9eef.tar.bz2
rneovim-d9f5cd6290755b0fc571c89db5f213844cbe9eef.zip
Re-integrate FEAT_SIGNS code, close #383
- omit FEAT_NETBEANS_INTG and FEAT_SIGN_ICONS - omit FEAT_GUI blocks
Diffstat (limited to 'src/edit.c')
-rw-r--r--src/edit.c5
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;
}