Fix jumping to errors when paths contain a dash

This commit is contained in:
Nulo 2022-01-02 17:29:10 -03:00
parent 06ec64885d
commit 54e66fcb6a

View file

@ -45,8 +45,8 @@ define-command -hidden zig-open-error -params 4 %{
define-command -hidden zig-jump %{
evaluate-commands %{
execute-keys gl<a-?> '((?:\w|/|\.)+):([0-9]+):([0-9]+): (.+?)' <ret>
execute-keys s '((?:\w|/|\.)+):([0-9]+):([0-9]+): (.+?)$' <ret>;
execute-keys gl<a-?> '((?:\w|/|\.|-)+):([0-9]+):([0-9]+): (.+?)' <ret>
execute-keys s '((?:\w|/|\.|-)+):([0-9]+):([0-9]+): (.+?)$' <ret>;
zig-open-error "%reg{1}" "%reg{2}" "%reg{3}" "%reg{4}"
}
}