commit | 6b64394f346594404cffb9591d71ac693040679f | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Sun Mar 05 19:44:06 2017 +0100 |
committer | Bram Moolenaar <Bram@vim.org> | Sun Mar 05 19:44:06 2017 +0100 |
tree | 071c5aee49d73707a14ed71834adb1463b59fa44 | |
parent | f411a3c5aff644ec7a999be83ef22adf3e1132dd [diff] [blame] |
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)
diff --git a/src/misc1.c b/src/misc1.c index dce912c..ec92f03 100644 --- a/src/misc1.c +++ b/src/misc1.c
@@ -6974,6 +6974,9 @@ * 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++;