mirror of
https://github.com/preservim/nerdcommenter.git
synced 2025-11-09 18:23:48 -05:00
Fix bug for unable to uncomment indented comments in vim files (#510)
Closes https://github.com/preservim/nerdcommenter/issues/491
This commit is contained in:
committed by
GitHub
parent
1caf560df1
commit
ea6a4f76fa
@@ -2534,9 +2534,8 @@ function! s:IsDelimValid(delimiter, delIndx, line) abort
|
|||||||
return 0
|
return 0
|
||||||
endif
|
endif
|
||||||
|
|
||||||
"if the delimiter is on the very first char of the line or is the
|
# If delimiter is the first non-whitespace character it is valid
|
||||||
"first non-tab/space char on the line then it is a valid comment delimiter
|
if a:line =~# '^\s*"'
|
||||||
if a:delIndx ==# 0 || a:line =~# "^\s\\{" . a:delIndx . "\\}\".*$"
|
|
||||||
return 1
|
return 1
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user