Fix duplicate augroup END on CR - #162
Conversation
9e59ee9 to
e265948
Compare
|
Hi @cohama, just wondering if you have any thoughts on this (and the other two PRs I submitted a while ago). I can wrap them all into one PR if you would prefer. If you have any questions please let me know. Thanks |
|
Thank you for your pull requests. I prefer several small pull requests to one large pull request. I have a question about this PR. What do you mean by “duplicate”? Did you encounter any issues with the augroup? I tried to reproduce the issue, but I could not. |
|
At the end of a line containing I realise it is an edge case, but I have occasionally found myself hitting EDIT: see screen recording showing issue Screen.Recording.2026-07-11.at.08.49.39.mov |
Add negative lookahead to pattern and avoid matching augroup END
e265948 to
270c613
Compare
|
Hi @cohama, just wondering if you have any time to have a look at the PRs? This one is very simple, just modifies the regex for |
Hi @cohama,
When editing vimscript files if you enter
<CR>afteraugroup ENDa duplicateaugroup ENDis added.I've updated the pattern to address this, by adding a negative lookahead to not match
augroup END.Hope this is useful :-)