mirror of
https://github.com/preservim/nerdcommenter.git
synced 2025-11-08 09:53:47 -05:00
Make insert independent of whichwrap setting (#419)
If `set whichwrap+=l`, `normal! l` may move the cursor to the next line.
Use `feedkeys('a', 'ni')` instead.
This commit is contained in:
committed by
GitHub
parent
cbadb3d93e
commit
c62e618a1a
@@ -1507,7 +1507,6 @@ function s:PlaceDelimitersAndInsBetween()
|
||||
else
|
||||
execute ':normal! ' . insOrApp . left
|
||||
endif
|
||||
silent! normal! l
|
||||
|
||||
"if needed convert spaces back to tabs and adjust the cursors col
|
||||
"accordingly
|
||||
@@ -1520,7 +1519,7 @@ function s:PlaceDelimitersAndInsBetween()
|
||||
if isDelimOnEOL && lenRight ==# 0
|
||||
startinsert!
|
||||
else
|
||||
startinsert
|
||||
call feedkeys('a', 'ni')
|
||||
endif
|
||||
endfunction
|
||||
|
||||
|
||||
Reference in New Issue
Block a user