mirror of
https://github.com/neovim/neovim.git
synced 2025-10-09 19:36:40 +00:00
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:
@@ -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 == '-')
|
||||
|
Reference in New Issue
Block a user