From cda1fdafe24e6706a02d68648e0ab48e0c7f85a3 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Sat, 24 Feb 2018 20:59:31 +1100 Subject: [PATCH] test: fix run script after changes jump list behaviour source the rc file *after* selecting the target text to ensure eventual hooks will not interfere. --- test/run | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/test/run b/test/run index 37b5dce15..661d3cf7c 100755 --- a/test/run +++ b/test/run @@ -10,13 +10,10 @@ main() { set global autoreload yes set global autoinfo "" set global autoshowcompl false - try %{ source rc } try %{ - exec -save-regs / %{%s%\(\K[^)]+} - exec -draft ld - exec -draft hHd - exec i + exec -save-regs / %{%s%\(\K[^)]+\)ai} } catch %{ exec gg } + try %{ source rc } hook global RuntimeError .+ %{ echo -debug -- error: %val{hook_param} eval -buffer *debug* write debug