Skip to content

Commit b7b4973

Browse files
does not do anything with other buffers when there is only one argument passed
1 parent 559088a commit b7b4973

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

plugin/file_line.vim

+7-4
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,13 @@ function! s:startup()
8080
if argc() > 0
8181
let argidx=argidx()
8282
silent call s:handle_arg()
83-
exec (argidx+1).'argument'
84-
" Manually call Syntax autocommands, ignored by `:argdo`.
85-
doautocmd Syntax
86-
doautocmd FileType
83+
84+
if argc() != 1
85+
exec (argidx+1).'argument'
86+
" Manually call Syntax autocommands, ignored by `:argdo`.
87+
doautocmd Syntax
88+
doautocmd FileType
89+
endif
8790
endif
8891
endfunction
8992

0 commit comments

Comments
 (0)