Avoid spurious error on empty autoload folders
This commit is contained in:
parent
f2dac6ca15
commit
c27778497e
|
@ -36,7 +36,9 @@ def -params 1 -docstring "colorscheme <name>: enable named colorscheme" \
|
|||
autoload() {
|
||||
dir=$1
|
||||
for rcfile in ${dir}/*.kak; do
|
||||
if [ -f "$rcfile" ]; then
|
||||
echo "try %{ source '${rcfile}' } catch %{ echo -debug Autoload: could not load '${rcfile}' }";
|
||||
fi
|
||||
done
|
||||
for subdir in ${dir}/*; do
|
||||
if [ -d "$subdir" ]; then
|
||||
|
|
Loading…
Reference in New Issue
Block a user