mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-19 07:17:11 +09:00
Fix autoclose plugin cursor position
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user