mirror of
https://github.com/mawww/kakoune.git
synced 2024-11-15 01:11:09 +03:00
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:
parent
a25d6171d3
commit
cda1fdafe2
7
test/run
7
test/run
@ -10,13 +10,10 @@ main() {
|
|||||||
set global autoreload yes
|
set global autoreload yes
|
||||||
set global autoinfo ""
|
set global autoinfo ""
|
||||||
set global autoshowcompl false
|
set global autoshowcompl false
|
||||||
try %{ source rc }
|
|
||||||
try %{
|
try %{
|
||||||
exec -save-regs / %{%s%\(\K[^)]+<ret><c-s>}
|
exec -save-regs / %{%s%\(\K[^)]+\)<ret>a<backspace><esc>i<backspace><backspace><c-u><esc><a-;>}
|
||||||
exec -draft ld
|
|
||||||
exec -draft <a-\;>hHd
|
|
||||||
exec i<c-u><esc><c-o>
|
|
||||||
} catch %{ exec gg }
|
} catch %{ exec gg }
|
||||||
|
try %{ source rc }
|
||||||
hook global RuntimeError .+ %{
|
hook global RuntimeError .+ %{
|
||||||
echo -debug -- error: %val{hook_param}
|
echo -debug -- error: %val{hook_param}
|
||||||
eval -buffer *debug* write debug
|
eval -buffer *debug* write debug
|
||||||
|
Loading…
Reference in New Issue
Block a user