1
0
forked from aniani/vim

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)
This commit is contained in:
Bram Moolenaar
2017-03-05 19:44:06 +01:00
parent f411a3c5af
commit 6b64394f34
6 changed files with 25 additions and 1 deletions

View File

@@ -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++;