Skip to content

Commit

Permalink
global: fix leak variables
Browse files Browse the repository at this point in the history
  • Loading branch information
akinomyoga committed Feb 7, 2020
1 parent f92ba5c commit 9461953
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/core-complete.sh
Expand Up @@ -1553,7 +1553,7 @@ function ble/complete/util/construct-ambiguous-regex {
local text=$1 fixlen=${2:-1}
local opt_icase=; [[ :$comp_type: == *:i:* ]] && opt_icase=1
local -a buff=()
local i=0 n=${#text} c=
local i=0 n=${#text} ch=
for ((i=0;i<n;i++)); do
((i>=fixlen)) && ble/array#push buff '.*'
ch=${text:i:1}
Expand Down
4 changes: 2 additions & 2 deletions src/decode.sh
Expand Up @@ -2473,9 +2473,9 @@ function ble/builtin/bind/.parse-keyname {
(return|ret) ch=$'\r' ;;
(space|spc) ch=' ' ;;
(tab) ch=$'\t' ;;
(*) LC_ALL=C eval 'local ch=${value::1}' ;;
(*) LC_ALL=C eval 'ch=${value::1}' ;;
esac
ble/util/s2c "$c"; local key=$ret
ble/util/s2c "$ch"; local key=$ret

[[ $mflags == *c* ]] && ((key&=0x1F))
[[ $mflags == *m* ]] && ((key|=0x80))
Expand Down

0 comments on commit 9461953

Please sign in to comment.