Using shiftwidth()

This commit is contained in:
ryunix
2016-04-17 00:13:45 +09:00
parent 0ccaa29dbd
commit d550205295

View File

@@ -49,7 +49,7 @@ function! emmet#getIndentation(...) abort
elseif has_key(s:emmet_settings.variables, 'indentation') elseif has_key(s:emmet_settings.variables, 'indentation')
let indent = s:emmet_settings.variables.indentation let indent = s:emmet_settings.variables.indentation
else else
let indent = (&l:expandtab || &l:tabstop !=# &l:shiftwidth) ? repeat(' ', &l:shiftwidth) : "\t" let indent = (&l:expandtab || &l:tabstop !=# shiftwidth()) ? repeat(' ', shiftwidth()) : "\t"
endif endif
return indent return indent
endfunction endfunction