Restore use to IsCharCommented function after autoload refactor goof

This commit is contained in:
Caleb Maclennan
2021-07-29 16:29:04 +03:00
parent f21b0f8fab
commit 8e935a6367
2 changed files with 6 additions and 2 deletions

View File

@@ -1298,7 +1298,7 @@ function! nerdcommenter#Comment(mode, type) range abort
endfunction
" Function: NERDCommentIsCharCommented(line, col) abort
" Function: nerdcommenter#IsCharCommented(line, col) abort
" Check if the character at [line, col] is inside a comment
" Note the Comment delimeter it self is considered as part of the comment
"
@@ -1306,7 +1306,7 @@ endfunction
" -line the line number of the character
" -col the column number of the character
" Return: Number, 1 if the character is inside a comment, 0 if is not
function! NERDCommentIsCharCommented(line, col) abort
function! nerdcommenter#IsCharCommented(line, col) abort
" Function: s:searchfor(str, line, col, direction, [maxline])
" search str in the buffer, including the character at [line, col]
" Args:

View File

@@ -107,6 +107,10 @@ function! NERDCommentIsLineCommented(lineNo)
return nerdcommenter#IsLineCommented(a:lineNo)
endfunction
function! NERDCommentIsCharCommented(line, col)
return nerdcommenter#IsCharCommented(a:line, a:col)
endfunction
inoremap <silent> <Plug>NERDCommenterInsert <Space><BS><Esc>:call nerdcommenter#Comment('i', "insert")<CR>
" switch to/from alternative delimiters (does not use wrapper function)