mirror of
https://github.com/preservim/nerdcommenter.git
synced 2024-11-27 10:59:25 +08:00
Start Insertion in Append Mode When no Right Delim (#234)
This commit is contained in:
parent
c3afedbe22
commit
4760e57514
|
@ -612,8 +612,10 @@ function s:AppendCommentToLine()
|
|||
if lenRight > 0
|
||||
let leftMoveAmount = lenRight - 1
|
||||
execute ":normal! " . leftMoveAmount . "h"
|
||||
endif
|
||||
startinsert
|
||||
else
|
||||
startinsert!
|
||||
endif
|
||||
endfunction
|
||||
|
||||
" Function: s:CommentBlock(top, bottom, lSide, rSide, forceNested ) {{{2
|
||||
|
|
Loading…
Reference in New Issue
Block a user