mirror of
https://github.com/mattn/emmet-vim.git
synced 2025-12-15 23:07:07 +08:00
use original indent instead of s:zen_settings.indentation for start of the line.
This commit is contained in:
@@ -1337,8 +1337,7 @@ function! s:zen_expandAbbr(mode) range
|
||||
let expand = substitute(expand, '${datetime}', strftime("%Y-%m-%dT%H:%M:%S %z"), 'g')
|
||||
endif
|
||||
if line[:-len(part)-1] =~ '^\s\+$'
|
||||
let size = (len(line) - len(part)) / len(s:zen_settings.indentation)
|
||||
let indent = repeat(s:zen_settings.indentation, size)
|
||||
let indent = line[:-len(part)-1]
|
||||
else
|
||||
let indent = ''
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user