vim-patch:8.0.0423: changing 'cinoptions' does not always work

Problem:    The effect of adding "vim/vim#" to 'cinoptions' is not always removed.
            (David Briscoe)
Solution:   Reset b_ind_hash_comment. (Christian Brabandt, closes vim/vim#1475)

6b64394f34
This commit is contained in:
ckelsel
2018-01-20 15:47:56 +08:00
parent 94f4469638
commit b00fd49640
4 changed files with 22 additions and 1 deletions

View File

@@ -1619,6 +1619,9 @@ void 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++;
if (*p == '-')