Skip to content

Commit

Permalink
Add an explicit --nopager to default ack options
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ches committed May 3, 2016
1 parent 6c8e2de commit dbc19be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/ack.vim
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ if exists('g:loaded_ack')
endif

if !exists("g:ack_default_options")
let g:ack_default_options = " -s -H --nocolor --nogroup --column"
let g:ack_default_options = " -s -H --nopager --nocolor --nogroup --column"
endif

" Location of the ack utility
Expand Down

0 comments on commit dbc19be

Please sign in to comment.