formatprg only set when b:formatprg exists
This commit is contained in:
parent
a4724c5dac
commit
546e181dab
@ -34,8 +34,6 @@ function! g:FindFormatter(name, args)
|
|||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
"formatprg is a global option
|
"formatprg is a global option
|
||||||
"So when buffer/window/tab changes, (re)load formatprg from the bufferlocal
|
"So when buffer/window/tab changes,
|
||||||
"variable
|
"(re)load formatprg from the bufferlocal variable
|
||||||
au BufEnter,WinEnter * let &formatprg=b:formatprg
|
au BufEnter,WinEnter * if exists("b:formatprg") | let &formatprg=b:formatprg
|
||||||
"Default value for b:formatprg is empty string
|
|
||||||
let b:formatprg = ""
|
|
||||||
|
Loading…
Reference in New Issue
Block a user