From da948e160d9f54c2967c7927b9c74c5a68c8dc49 Mon Sep 17 00:00:00 2001 From: zhaoyunfeng <11958657+zyf0330@users.noreply.github.com> Date: Thu, 2 Nov 2023 19:24:05 +0800 Subject: [PATCH] fix: Ensure #Setup is run in #IsCharCommented (#527) --- autoload/nerdcommenter.vim | 1 + 1 file changed, 1 insertion(+) diff --git a/autoload/nerdcommenter.vim b/autoload/nerdcommenter.vim index 7cea396..bc4c72e 100644 --- a/autoload/nerdcommenter.vim +++ b/autoload/nerdcommenter.vim @@ -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: