test: fix support for '(' in initial selected text

This commit is contained in:
Maxime Coste 2017-12-03 15:54:21 +08:00
parent 9a4b5de772
commit 1371148588

View File

@ -12,7 +12,10 @@ main() {
set global autoshowcompl false set global autoshowcompl false
try %{ source rc } try %{ source rc }
try %{ try %{
exec -save-regs / %{%s%\(\K[^)]+<ret><c-s>ld<a-t>(hHdi<c-u><esc><c-o>} exec -save-regs / %{%s%\(\K[^)]+<ret><c-s>}
exec -draft ld
exec -draft <a-\;>hHd
exec i<c-u><esc><c-o>
} catch %{ exec gg } } catch %{ exec gg }
hook global RuntimeError .+ %{ hook global RuntimeError .+ %{
echo -debug -- error: %val{hook_param} echo -debug -- error: %val{hook_param}