Merge pull request #485 from ftfunjth/master

This commit is contained in:
Caleb Maclennan
2021-12-28 13:31:54 +03:00
committed by GitHub

View File

@@ -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