Skip to content

Commit

Permalink
edit (command-help): use "ble/util/assign/.mktmp" to determine the te…
Browse files Browse the repository at this point in the history
…mporary filename
  • Loading branch information
akinomyoga committed Jun 19, 2022
1 parent a3a353e commit 2ff6078
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/edit.sh
Expand Up @@ -6876,9 +6876,10 @@ function read { ble/builtin/read "$@"; }
## 関数 ble/widget/command-help/.read-man
## @var[out] man_content
function ble/widget/command-help/.read-man {
local pager="sh -c 'cat >| \"\$BLETMPFILE\"'" tmp=$_ble_util_assign_base
BLETMPFILE=$tmp MANPAGER=$pager PAGER=$pager MANOPT= man "$@" 2>/dev/null; local ext=$? # 668ms
ble/util/readfile man_content "$tmp" # 80ms
local -x _ble_local_tmpfile; ble/util/assign/.mktmp
local pager="sh -c 'cat >| \"\$_ble_local_tmpfile\"'"
MANPAGER=$pager PAGER=$pager MANOPT= man "$@" 2>/dev/null; local ext=$? # 668ms
ble/util/readfile man_content "$_ble_local_tmpfile" # 80ms
return "$ext"
}

Expand Down

0 comments on commit 2ff6078

Please sign in to comment.