From e7432ba2461a8b37b838b1c7756c06a66aa55007 Mon Sep 17 00:00:00 2001 From: Nicolas Goy Date: Wed, 28 Oct 2015 15:17:43 +0100 Subject: [PATCH] Fix https://github.com/Chiel92/vim-autoformat/issues/84 --- plugin/defaults.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/defaults.vim b/plugin/defaults.vim index 11861de..d828f5c 100644 --- a/plugin/defaults.vim +++ b/plugin/defaults.vim @@ -171,7 +171,7 @@ endif " Typescript if !exists('g:formatdef_tsfmt') - let g:formatdef_tsfmt = '"tsfmt --stdin %"' + let g:formatdef_tsfmt = '"tsfmt --stdin '.bufname('%').'"' endif if !exists('g:formatters_typescript')