Improve test script

This commit is contained in:
Maxime Coste 2016-05-10 13:51:00 +01:00
parent 1160c51dc4
commit 63ac752916

View File

@ -31,17 +31,13 @@ main() {
set global autoreload yes set global autoreload yes
set global autoinfo '' set global autoinfo ''
set global autoshowcompl false set global autoshowcompl false
try %{ try %{ source rc }
source rc
}
try %{ try %{
exec '%s%\(\K[^)]+<ret><c-s>ld<a-t>(hHdi<c-u><esc><c-o>' exec '%s%\(\K[^)]+<ret><c-s>ld<a-t>(hHdi<c-u><esc><c-o>'
} \ } catch %{ exec gg }
catch %{
exec gg
}
hook global RuntimeError .+ %{ hook global RuntimeError .+ %{
nop %sh{echo \"\$kak_hook_param\" > stderr} echo -debug -- error: %val{hook_param}
eval -buffer *debug* write debug
quit! quit!
} }
exec '$(cat cmd | sed -e s/\'/\\\\\'/g)' exec '$(cat cmd | sed -e s/\'/\\\\\'/g)'