Skip to content

Commit

Permalink
Merge remote-tracking branch 'lenormf/fix-temporary-dir-template'
Browse files Browse the repository at this point in the history
  • Loading branch information
mawww committed Dec 4, 2020
2 parents fd95e91 + a548caa commit ce97c0d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions rc/tools/format.kak
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ define-command format-selections -docstring "Format the selections individually"
}
evaluate-commands -draft -no-hooks -save-regs '|' %{
set-register '|' %{
format_in="$(mktemp "${TMPDIR:-/tmp}"/kak-formatter-XXXXXX)"
format_out="$(mktemp "${TMPDIR:-/tmp}"/kak-formatter-XXXXXX)"
format_in="$(mktemp "${TMPDIR:-/tmp}"/kak-formatter.XXXXXX)"
format_out="$(mktemp "${TMPDIR:-/tmp}"/kak-formatter.XXXXXX)"

cat > "$format_in"
eval "$kak_opt_formatcmd" < "$format_in" > "$format_out"
Expand Down
6 changes: 3 additions & 3 deletions rc/tools/man.kak
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ define-command -hidden -params ..3 man-impl %{ evaluate-commands %sh{
exit
fi
shift
manout=$(mktemp "${TMPDIR:-/tmp}"/kak-man-XXXXXX)
manerr=$(mktemp "${TMPDIR:-/tmp}"/kak-man-XXXXXX)
colout=$(mktemp "${TMPDIR:-/tmp}"/kak-man-XXXXXX)
manout=$(mktemp "${TMPDIR:-/tmp}"/kak-man.XXXXXX)
manerr=$(mktemp "${TMPDIR:-/tmp}"/kak-man.XXXXXX)
colout=$(mktemp "${TMPDIR:-/tmp}"/kak-man.XXXXXX)
env MANWIDTH=${kak_window_range##* } man "$@" > "$manout" 2> "$manerr"
retval=$?
col -b -x > ${colout} < ${manout}
Expand Down

0 comments on commit ce97c0d

Please sign in to comment.