Skip to content

Commit dbc19be

Browse files
committed
Add an explicit --nopager to default ack options
Otherwise if a user has something like `--pager=less` as a default in their `~/.ackrc`, Ack may think that it's running interactively if executed in a separate shell e.g. when `g:ack_use_dispatch` is enabled. This will result in broken behavior loading results in Vim. See #182 for some background.
1 parent 6c8e2de commit dbc19be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugin/ack.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ if exists('g:loaded_ack')
33
endif
44

55
if !exists("g:ack_default_options")
6-
let g:ack_default_options = " -s -H --nocolor --nogroup --column"
6+
let g:ack_default_options = " -s -H --nopager --nocolor --nogroup --column"
77
endif
88

99
" Location of the ack utility

0 commit comments

Comments
 (0)