Use &shiftwidth only when &expandtab option set
This commit is contained in:
parent
ca5e8f9791
commit
bde27cd815
@ -60,5 +60,5 @@ endif
|
||||
|
||||
if !exists("g:formatprg_ruby") | let g:formatprg_ruby = "rbeautify" | endif
|
||||
if !exists("g:formatprg_args_expr_ruby") && !exists("g:formatprg_args_ruby")
|
||||
let g:formatprg_args_expr_ruby = '(&expandtab ? "-s" : "-t").(&shiftwidth ? " -c ".&shiftwidth : "")'
|
||||
let g:formatprg_args_expr_ruby = '(&expandtab ? "-s -c ".&shiftwidth : "-t")'
|
||||
endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user