mirror of
https://github.com/preservim/nerdcommenter.git
synced 2025-11-12 19:53:47 -05:00
fix repeat for visual-line comments
this is still broken for visual and visual-block commenting
This commit is contained in:
@@ -1129,7 +1129,12 @@ function! NERDComment(mode, type) range
|
|||||||
|
|
||||||
let &ignorecase = oldIgnoreCase
|
let &ignorecase = oldIgnoreCase
|
||||||
|
|
||||||
|
if isVisual
|
||||||
|
let nlines = lastLine - firstLine
|
||||||
|
silent! call repeat#set("V" . nlines . "jo" . "\<Plug>NERDCommenter". a:type)
|
||||||
|
else
|
||||||
silent! call repeat#set("\<Plug>NERDCommenter". a:type)
|
silent! call repeat#set("\<Plug>NERDCommenter". a:type)
|
||||||
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
" Function: s:PlaceDelimitersAndInsBetween() function {{{2
|
" Function: s:PlaceDelimitersAndInsBetween() function {{{2
|
||||||
|
|||||||
Reference in New Issue
Block a user