From 2e7a775dd28db52506c0a0978a1fe66bfdb99c2a Mon Sep 17 00:00:00 2001 From: ftfunjth Date: Tue, 28 Dec 2021 18:13:13 +0800 Subject: [PATCH] Add SetUp call in IsLineCommented function definition --- autoload/nerdcommenter.vim | 1 + 1 file changed, 1 insertion(+) diff --git a/autoload/nerdcommenter.vim b/autoload/nerdcommenter.vim index 55a43a2..f371bda 100644 --- a/autoload/nerdcommenter.vim +++ b/autoload/nerdcommenter.vim @@ -1153,6 +1153,7 @@ endfunction " -lineNo: the line number of the line to check " Return: Number, 1 if the line is a comment, 0 else function! nerdcommenter#IsLineCommented(lineNo) abort + call nerdcommenter#SetUp() let theLine = getline(a:lineNo) return s:IsInSexyComment(a:lineNo) || s:IsCommentedFromStartOfLine(s:Left(), theLine) || s:IsCommentedFromStartOfLine(s:Left({'alt': 1}), theLine) endfunction