grep: fix for filenames containg spaces

This commit is contained in:
Olivier Perret 2019-09-30 23:53:36 +02:00
parent aa6a7e544d
commit b376e3b662

View File

@ -44,7 +44,7 @@ define-command -hidden grep-jump %{
try %{
execute-keys '<a-x>s^((?:\w:)?[^:]+):(\d+):(\d+)?<ret>'
set-option buffer grep_current_line %val{cursor_line}
evaluate-commands -try-client %opt{jumpclient} edit -existing %reg{1} %reg{2} %reg{3}
evaluate-commands -try-client %opt{jumpclient} %{ edit -existing %reg{1} %reg{2} %reg{3} }
try %{ focus %opt{jumpclient} }
}
}