-
Notifications
You must be signed in to change notification settings - Fork 131
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gv
increases the quickfix window's height each time it's run
#11
Comments
Urr, yeah, that sounds odd. I'm finally winding down the thunderstorm that was RailsConf; will look at it on the plane tomorrow. =) |
Cheers! On May 3, 2013, at 3:44 AM, ☈king notifications@github.com wrote:
|
How's this? |
Hmm, that opens a new split each time (rather than focusing the window that the file is already open in). I'll see if I can take a crack at it here next week sometime |
I'm confused. What is your expected behavior? The original ack.vim's description of the functionality is to silently open the result in a vsplit. |
Any opinions on this? It might be good to use the default height, and provide an option (like in #20, I think) to change the default quickfix height. |
This'll be fixed once #29 is merged |
Before this was just being set to something similar to the default height. Though this code is harder to read, it fixes the following: - Close the right list (the location list or the quickfix window). This is fixed for the `e` and `q` commands too. - If someone specifies a height (e.g. `let g:ag_qhandler="copen 50"`) then `gv` will be less jarring because when the quickfix window is re-opened it'll be 50 lines again. 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 rking#11 Thanks to @sigmavirus24 for helping out with this one :)
See #30 for a better fix for this |
Before this was just being set to something similar to the default height. Though this code is harder to read, it fixes the following: - Close the right list (the location list or the quickfix window). This is fixed for the `e` and `q` commands too. - If someone specifies a height (e.g. `let g:ag_qhandler="copen 50"`) then `gv` will be less jarring because when the quickfix window is re-opened it'll be 50 lines again. 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 rking#11 Thanks to @sigmavirus24 for helping out with this one :)
Seems like an unwanted side-effect
The text was updated successfully, but these errors were encountered: