mirror of
https://github.com/preservim/nerdcommenter.git
synced 2025-11-12 11:43:46 -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
|
||||
|
||||
silent! call repeat#set("\<Plug>NERDCommenter". a:type)
|
||||
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)
|
||||
endif
|
||||
endfunction
|
||||
|
||||
" Function: s:PlaceDelimitersAndInsBetween() function {{{2
|
||||
|
||||
Reference in New Issue
Block a user