mirror of
https://github.com/mawww/kakoune.git
synced 2024-11-27 12:16:22 +03:00
parent
93f913705a
commit
798a7ec351
@ -59,13 +59,15 @@ define-command doc-jump-to-anchor -params 1 %{
|
||||
evaluate-commands %sh{
|
||||
anchor="$1"
|
||||
eval "set -- $kak_opt_doc_anchors"
|
||||
|
||||
shift
|
||||
for range in "$@"; do
|
||||
if [ "${range#*|}" == "$anchor" ]; then
|
||||
printf '%s\n' "select '${range%|*}'; execute-keys vv"
|
||||
exit
|
||||
fi
|
||||
done
|
||||
printf '%s\n' "echo -markup %{{Error}No such anchor '$1'}"
|
||||
printf "echo -markup {Error}No such anchor '%s'" "${anchor}"
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user