mirror of
https://github.com/Hopiu/micro.git
synced 2026-04-04 23:20:37 +00:00
Fix autoclose plugin cursor position
This commit is contained in:
parent
d41a255361
commit
404e5d206d
2 changed files with 3 additions and 2 deletions
File diff suppressed because one or more lines are too long
|
|
@ -1108,6 +1108,7 @@ function preInsertNewline(v)
|
|||
v:InsertNewline(false)
|
||||
v:InsertTab(false)
|
||||
v.Buf:Insert(-v.Cursor.Loc, "\n" .. ws)
|
||||
v:StartOfLine(false)
|
||||
v:CursorLeft(false)
|
||||
return false
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in a new issue