Skip to content

Commit

Permalink
Merge pull request rking#63 from rizzatti/close_location_list
Browse files Browse the repository at this point in the history
Fix q mapping for location list commands
  • Loading branch information
kassio committed Mar 11, 2014
2 parents 7f9f8c8 + a452191 commit 39f93d7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion plugin/ack.vim
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,15 @@ function! s:Ack(cmd, args)
if a:cmd =~# '^l'
exe g:ack_lhandler
let l:apply_mappings = g:ack_apply_lmappings
let l:close_cmd = ':lclose<CR>'
else
exe g:ack_qhandler
let l:apply_mappings = g:ack_apply_qmappings
let l:close_cmd = ':cclose<CR>'
endif

if l:apply_mappings
exec "nnoremap <silent> <buffer> q :ccl<CR>"
exec "nnoremap <silent> <buffer> q " . l:close_cmd
exec "nnoremap <silent> <buffer> t <C-W><CR><C-W>T"
exec "nnoremap <silent> <buffer> T <C-W><CR><C-W>TgT<C-W><C-W>"
exec "nnoremap <silent> <buffer> o <CR>"
Expand Down

0 comments on commit 39f93d7

Please sign in to comment.