mirror of
https://github.com/mattn/emmet-vim.git
synced 2026-05-17 13:59:40 +08:00
Restore cursor position on insert-mode
This commit is contained in:
@@ -79,7 +79,7 @@ function! emmet#lang#sass#balanceTag(flag) range
|
||||
if a:flag == -2 || a:flag == 2
|
||||
let curpos = [0, line("'<"), col("'<"), 0]
|
||||
else
|
||||
let curpos = getpos('.')
|
||||
let curpos = emmet#util#getcurpos()
|
||||
endif
|
||||
let n = curpos[1]
|
||||
let ml = len(matchstr(getline(n), '^\s*'))
|
||||
|
||||
Reference in New Issue
Block a user