1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-11-14 02:44:35 +03:00

Merge remote-tracking branch 'occivink/c-family-quote-variable'

This commit is contained in:
Maxime Coste 2021-05-01 14:42:03 +10:00
commit 7090be59df

View File

@ -419,7 +419,7 @@ define-command -hidden c-family-alternative-file %{
/*) altname="${alt_dir}/${file_noext}.${ext}" ;; /*) altname="${alt_dir}/${file_noext}.${ext}" ;;
*) altname="${dir}/${alt_dir}/${file_noext}.${ext}" ;; *) altname="${dir}/${alt_dir}/${file_noext}.${ext}" ;;
esac esac
if [ -f ${altname} ]; then if [ -f "${altname}" ]; then
printf 'edit %%{%s}\n' "${altname}" printf 'edit %%{%s}\n' "${altname}"
exit exit
fi fi
@ -433,7 +433,7 @@ define-command -hidden c-family-alternative-file %{
/*) altname="${alt_dir}/${file_noext}.${ext}" ;; /*) altname="${alt_dir}/${file_noext}.${ext}" ;;
*) altname="${dir}/${alt_dir}/${file_noext}.${ext}" ;; *) altname="${dir}/${alt_dir}/${file_noext}.${ext}" ;;
esac esac
if [ -f ${altname} ]; then if [ -f "${altname}" ]; then
printf 'edit %%{%s}\n' "${altname}" printf 'edit %%{%s}\n' "${altname}"
exit exit
fi fi