Fix arbitrary keys execution in the doc
command
This commit is contained in:
parent
55d381999e
commit
82a3f10a82
|
@ -18,7 +18,8 @@ def -hidden -params 1..2 _doc-open %{
|
|||
"
|
||||
|
||||
if [ $# -gt 1 ]; then
|
||||
echo "try %{ exec '%<a-s><a-k>(?i)^\h+[^\n]*?\Q${2}\E<ret>\'' } catch %{ exec <space>gg }"
|
||||
needle=$(printf %s "$2" | sed 's,<,<lt>,g')
|
||||
echo "try %{ exec '%<a-s><a-k>(?i)^\h+[^\n]*?\Q${needle}\E<ret>\'' } catch %{ exec <space>gg }"
|
||||
fi
|
||||
else
|
||||
echo "echo -color Error %{doc '$@' failed: see *debug* buffer for details}"
|
||||
|
|
Loading…
Reference in New Issue
Block a user