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.
This commit is contained in:
Maxime Coste 2018-02-24 20:59:31 +11:00
parent a25d6171d3
commit cda1fdafe2

View File

@ -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[^)]+<ret><c-s>}
exec -draft ld
exec -draft <a-\;>hHd
exec i<c-u><esc><c-o>
exec -save-regs / %{%s%\(\K[^)]+\)<ret>a<backspace><esc>i<backspace><backspace><c-u><esc><a-;>}
} catch %{ exec gg }
try %{ source rc }
hook global RuntimeError .+ %{
echo -debug -- error: %val{hook_param}
eval -buffer *debug* write debug