Skip to content

Commit

Permalink
Remove support to ack 1.x
Browse files Browse the repository at this point in the history
  • Loading branch information
kassio committed Mar 31, 2014
1 parent 5256a85 commit 69bc479
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ check out the docs for the Perl script 'ack', for obvious reasons:

### 1.0

* Remove support to ack 1.x
* Start to use a Changelog
* Use `autoload` directory to define functions, instead of `plugin`.
* Add option to auto fold the results(`g:ack_autofold_results`)
Expand Down
5 changes: 1 addition & 4 deletions autoload/ack.vim
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,7 @@ function! ack#Ack(cmd, args)
" Format, used to manage column jump
if a:cmd =~# '-g$'
let g:ackformat="%f"
if s:ackprg_version > 2
" remove arguments that conflict with -g
let l:ackprg_run = substitute(l:ackprg_run, '-H\|--column', '', 'g')
endif
let l:ackprg_run = substitute(l:ackprg_run, '-H\|--column', '', 'g')
else
let g:ackformat="%f:%l:%c:%m,%f:%l:%m"
endif
Expand Down
2 changes: 0 additions & 2 deletions plugin/ack.vim
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ if !exists("g:ackprg")
let g:ackprg .= " -s -H --nocolor --nogroup --column"
endif

let s:ackprg_version = eval(matchstr(system(g:ackprg . " --version"), '[0-9.]\+'))

if !exists("g:ack_apply_qmappings")
let g:ack_apply_qmappings = !exists("g:ack_qhandler")
endif
Expand Down

0 comments on commit 69bc479

Please sign in to comment.