From b7b4973f0772603af6603cfb8b9acb61b58a7c33 Mon Sep 17 00:00:00 2001 From: localhostdotdev Date: Sat, 6 Apr 2019 00:52:22 +0200 Subject: [PATCH] does not do anything with other buffers when there is only one argument passed --- plugin/file_line.vim | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/plugin/file_line.vim b/plugin/file_line.vim index 7244014..70bf236 100644 --- a/plugin/file_line.vim +++ b/plugin/file_line.vim @@ -80,10 +80,13 @@ function! s:startup() if argc() > 0 let argidx=argidx() silent call s:handle_arg() - exec (argidx+1).'argument' - " Manually call Syntax autocommands, ignored by `:argdo`. - doautocmd Syntax - doautocmd FileType + + if argc() != 1 + exec (argidx+1).'argument' + " Manually call Syntax autocommands, ignored by `:argdo`. + doautocmd Syntax + doautocmd FileType + endif endif endfunction