Fix autoclose plugin cursor position

This commit is contained in:
Zachary Yedidia
2017-09-05 18:36:42 -04:00
parent d41a255361
commit 404e5d206d
2 changed files with 3 additions and 2 deletions

View File

@@ -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