mirror of
https://github.com/tpope/vim-haml.git
synced 2025-12-08 10:04:47 +08:00
Use shiftwidth() when available
Closes https://github.com/tpope/vim-haml/issues/76
This commit is contained in:
@@ -29,7 +29,7 @@ function! GetSassIndent()
|
||||
let indent = indent(lnum)
|
||||
let cindent = indent(v:lnum)
|
||||
if line !~ s:property && line !~ s:extend && cline =~ s:property
|
||||
return indent + &sw
|
||||
return indent + (exists('*shiftwidth') ? shiftwidth() : &sw)
|
||||
else
|
||||
return -1
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user