mirror of
https://github.com/mattn/emmet-vim.git
synced 2025-12-07 11:14:26 +08:00
oops. fixed normal {foo}.
This commit is contained in:
@@ -747,7 +747,7 @@ function! zencoding#expandAbbr(mode) range
|
|||||||
" TODO: on windows, %z/%Z is 'Tokyo(Standard)'
|
" TODO: on windows, %z/%Z is 'Tokyo(Standard)'
|
||||||
let expand = substitute(expand, '${datetime}', strftime("%Y-%m-%dT%H:%M:%S %z"), 'g')
|
let expand = substitute(expand, '${datetime}', strftime("%Y-%m-%dT%H:%M:%S %z"), 'g')
|
||||||
endif
|
endif
|
||||||
if a:firstline == a:lastline
|
if a:mode == 2 && a:firstline == a:lastline
|
||||||
let line = getline('.')
|
let line = getline('.')
|
||||||
call setline(line('.'), line[0:col('.')].substitute(expand, '>\n\s*', '>', 'g').line[col('.'):])
|
call setline(line('.'), line[0:col('.')].substitute(expand, '>\n\s*', '>', 'g').line[col('.'):])
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user