fix: Ensure #Setup is run in #IsCharCommented (#527)

This commit is contained in:
zhaoyunfeng
2023-11-02 19:24:05 +08:00
committed by GitHub
parent c52b6e731c
commit da948e160d

View File

@@ -1319,6 +1319,7 @@ endfunction
" -col the column number of the character
" Return: Number, 1 if the character is inside a comment, 0 if is not
function! nerdcommenter#IsCharCommented(line, col) abort
call nerdcommenter#SetUp()
" Function: s:searchfor(str, line, col, direction, [maxline])
" search str in the buffer, including the character at [line, col]
" Args: