mirror of
https://github.com/preservim/nerdcommenter.git
synced 2025-11-08 09:53:47 -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
|
||||
endif
|
||||
|
||||
"if the delimiter is on the very first char of the line or is the
|
||||
"first non-tab/space char on the line then it is a valid comment delimiter
|
||||
if a:delIndx ==# 0 || a:line =~# "^\s\\{" . a:delIndx . "\\}\".*$"
|
||||
# If delimiter is the first non-whitespace character it is valid
|
||||
if a:line =~# '^\s*"'
|
||||
return 1
|
||||
endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user