mirror of
https://github.com/preservim/nerdcommenter.git
synced 2025-11-08 18:03:46 -05:00
Add SetUp call in IsLineCommented function definition
This commit is contained in:
@@ -1153,6 +1153,7 @@ endfunction
|
|||||||
" -lineNo: the line number of the line to check
|
" -lineNo: the line number of the line to check
|
||||||
" Return: Number, 1 if the line is a comment, 0 else
|
" Return: Number, 1 if the line is a comment, 0 else
|
||||||
function! nerdcommenter#IsLineCommented(lineNo) abort
|
function! nerdcommenter#IsLineCommented(lineNo) abort
|
||||||
|
call nerdcommenter#SetUp()
|
||||||
let theLine = getline(a:lineNo)
|
let theLine = getline(a:lineNo)
|
||||||
return s:IsInSexyComment(a:lineNo) || s:IsCommentedFromStartOfLine(s:Left(), theLine) || s:IsCommentedFromStartOfLine(s:Left({'alt': 1}), theLine)
|
return s:IsInSexyComment(a:lineNo) || s:IsCommentedFromStartOfLine(s:Left(), theLine) || s:IsCommentedFromStartOfLine(s:Left({'alt': 1}), theLine)
|
||||||
endfunction
|
endfunction
|
||||||
|
|||||||
Reference in New Issue
Block a user