From 6b64394f346594404cffb9591d71ac693040679f Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sun, 5 Mar 2017 19:44:06 +0100 Subject: patch 8.0.0423: changing 'cinoptions' does not always work Problem: The effect of adding "#" to 'cinoptions' is not always removed. (David Briscoe) Solution: Reset b_ind_hash_comment. (Christian Brabandt, closes #1475) --- src/misc1.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/misc1.c') diff --git a/src/misc1.c b/src/misc1.c index dce912c40..ec92f0375 100644 --- a/src/misc1.c +++ b/src/misc1.c @@ -6974,6 +6974,9 @@ parse_cino(buf_T *buf) * while(). */ buf->b_ind_if_for_while = 0; + /* indentation for # comments */ + buf->b_ind_hash_comment = 0; + for (p = buf->b_p_cino; *p; ) { l = p++; -- cgit v1.2.1