honor jumpclient for grep

This commit is contained in:
Maxime Coste 2013-12-13 14:00:14 +00:00
parent 9d4a0f7c19
commit dffd68a8ca

View File

@ -26,4 +26,9 @@ hook global WinSetOption filetype=grep %{
hook global WinSetOption filetype=(?!grep).* %{ rmhl grep-highlight; rmhooks buffer grep-hooks }
def jump %{ exec 'xs^([^:]+):(\d+):(\d+)?<ret>'; edit %reg{1} %reg{2} %reg{3} }
decl str jumpclient
def jump %{
exec 'xs^([^:]+):(\d+):(\d+)?<ret>'
eval -try-client %opt{jumpclient} edit %reg{1} %reg{2} %reg{3}
}