Slight style tweak in doc.kak
This commit is contained in:
parent
f2c0ee62ce
commit
0b592c5641
|
@ -41,12 +41,11 @@ An optional keyword argument can be passed to the function, which will be automa
|
||||||
readonly PATH_DOC="${kak_runtime}/../doc/kak/manpages/${1}.gz"
|
readonly PATH_DOC="${kak_runtime}/../doc/kak/manpages/${1}.gz"
|
||||||
|
|
||||||
shift
|
shift
|
||||||
if [ ! -f "${PATH_DOC}" ]; then
|
if [ -f "${PATH_DOC}" ]; then
|
||||||
|
printf %s\\n "eval -try-client %opt{docsclient} doc-open ${PATH_DOC} $@"
|
||||||
|
else
|
||||||
printf %s\\n "echo -color Error No such doc file: ${PATH_DOC}"
|
printf %s\\n "echo -color Error No such doc file: ${PATH_DOC}"
|
||||||
exit
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
printf %s\\n "eval -try-client %opt{docsclient} doc-open ${PATH_DOC} $@"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user