Skip to content

Commit

Permalink
only apply maps when found results
Browse files Browse the repository at this point in the history
  • Loading branch information
kassio committed Mar 24, 2014
1 parent f0469c3 commit b6799f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autoload/ack.vim
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ function! s:apply_maps()
\ "v": "<C-W><CR><C-W>H<C-W>b<C-W>J<C-W>t",
\ "gv": "<C-W><CR><C-W>H<C-W>b<C-W>J" }

if s:apply_mappings
if s:apply_mappings && &ft == "qf"
if !exists("g:ack_autoclose") || !g:ack_autoclose
for key_map in items(s:maps)
execute printf("nnoremap <buffer> <silent> %s %s", get(key_map, 0), get(key_map, 1))
Expand Down

0 comments on commit b6799f1

Please sign in to comment.