rc modeline: Print the final command directly

This commit is contained in:
Frank LENORMAND 2020-09-18 14:50:08 +03:00
parent 2a51ebf105
commit 4025ac8167

View File

@ -102,14 +102,10 @@ define-command -hidden modeline-parse-impl %{
fi fi
case "${type_selection}" in case "${type_selection}" in
vim) tr=$(translate_opt_vim "${name_option}" "${value_option}");; vim) translate_opt_vim "${name_option}" "${value_option}";;
kakoune) tr=$(translate_opt_kakoune "${name_option}" "${value_option}");; kakoune) translate_opt_kakoune "${name_option}" "${value_option}";;
*) tr="";; *) exit 1;;
esac esac
if [ -n "${tr}" ]; then
printf %s\\n "${tr}"
fi
done done
} }
} }