summaryrefslogtreecommitdiff
path: root/src/edit.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-08-12 18:29:59 +0200
committerBram Moolenaar <Bram@vim.org>2016-08-12 18:29:59 +0200
commit95ec9d6a6ab3117d60ff638670a803d43974ba51 (patch)
treec4bb7a90165db973560e11a681665cce6c60e8d3 /src/edit.c
parentd823fa910cca43fec3c31c030ee908a14c272640 (diff)
downloadvim-git-95ec9d6a6ab3117d60ff638670a803d43974ba51.tar.gz
patch 7.4.2201v7.4.2201
Problem: The sign column disappears when the last sign is deleted. Solution: Add the 'signcolumn' option. (Christian Brabandt)
Diffstat (limited to 'src/edit.c')
-rw-r--r--src/edit.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/edit.c b/src/edit.c
index 228123227..08aed470c 100644
--- a/src/edit.c
+++ b/src/edit.c
@@ -6761,11 +6761,7 @@ comp_textwidth(
textwidth -= curwin->w_p_fdc;
#endif
#ifdef FEAT_SIGNS
- if (curwin->w_buffer->b_signlist != NULL
-# ifdef FEAT_NETBEANS_INTG
- || curwin->w_buffer->b_has_sign_column
-# endif
- )
+ if (signcolumn_on(curwin))
textwidth -= 1;
#endif
if (curwin->w_p_nu || curwin->w_p_rnu)