rking / ag.vim

Vim plugin for the_silver_searcher, 'ag', a replacement for the Perl module / CLI script 'ack'
1.74k stars 131 forks source link

Use the quickfix/location list height in `gv` #30

Closed losingkeys closed 10 years ago

losingkeys commented 10 years ago

Before this was just being set to something similar to the default height. Though this code is harder to read, it fixes the following:

The gv, e, and q mappings depended on a local variable that won't be available when the mapping was used, so |:execute| was used for those mappings to evaluate that variable when the mappings are made.

Fixes #11

Thanks to @sigmavirus24 for helping out with this one :)