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