mirror of
https://github.com/preservim/nerdcommenter.git
synced 2024-11-23 21:55:20 +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"
|
||||
startinsert
|
||||
else
|
||||
startinsert!
|
||||
endif
|
||||
startinsert
|
||||
endfunction
|
||||
|
||||
" Function: s:CommentBlock(top, bottom, lSide, rSide, forceNested ) {{{2
|
||||
|
|
Loading…
Reference in New Issue
Block a user