mirror of
https://github.com/mattn/emmet-vim.git
synced 2025-12-06 18:54:27 +08:00
Using shiftwidth()
This commit is contained in:
@@ -49,7 +49,7 @@ function! emmet#getIndentation(...) abort
|
||||
elseif has_key(s:emmet_settings.variables, 'indentation')
|
||||
let indent = s:emmet_settings.variables.indentation
|
||||
else
|
||||
let indent = (&l:expandtab || &l:tabstop !=# &l:shiftwidth) ? repeat(' ', &l:shiftwidth) : "\t"
|
||||
let indent = (&l:expandtab || &l:tabstop !=# shiftwidth()) ? repeat(' ', shiftwidth()) : "\t"
|
||||
endif
|
||||
return indent
|
||||
endfunction
|
||||
|
||||
Reference in New Issue
Block a user