Skip to content

Commit d42c5c4

Browse files
committed
Don't pass -1 range when delegating to command
1 parent 2830953 commit d42c5c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

autoload/dispatch.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -641,7 +641,7 @@ function! dispatch#compile_command(bang, args, count) abort
641641

642642
if args =~# '^:\S'
643643
call dispatch#autowrite()
644-
if a:count
644+
if a:count > 0
645645
let args = substitute(args, '^:[%0]\=\ze\a', ':' . a:count, '')
646646
endif
647647
return s:wrapcd(get(request, 'directory', getcwd()),

0 commit comments

Comments
 (0)