Merge remote-tracking branch 'occivink/grep-space'

This commit is contained in:
Maxime Coste 2019-10-01 18:35:26 +10:00
commit 9421e28eb5

View File

@ -44,7 +44,7 @@ define-command -hidden grep-jump %{
try %{ try %{
execute-keys '<a-x>s^((?:\w:)?[^:]+):(\d+):(\d+)?<ret>' execute-keys '<a-x>s^((?:\w:)?[^:]+):(\d+):(\d+)?<ret>'
set-option buffer grep_current_line %val{cursor_line} 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} } try %{ focus %opt{jumpclient} }
} }
} }