Skip to content

Commit

Permalink
decode (encoding:C): fix initialization for isolated ESC
Browse files Browse the repository at this point in the history
  • Loading branch information
akinomyoga committed Jul 9, 2022
1 parent a96bafe commit c3bba5b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/ChangeLog.md
Expand Up @@ -200,6 +200,7 @@
- global: fix declaration of associative arrays for `ble-reload` (reported by 0xC0ncord) `#D1471` 3cae6e4
- global: use a better workaround of bash-4.2 `declare -gA` by separating assignment `#D1567` 2408a20
- bind: work around broken `cmd_xmap` after switching the editing mode `#D1478` 8d354c1
- decode (`encoding:C`): fix initialization for isolated ESC `#D1839` XXXXXXX
- edit: clear graphic rendition on newlines and external commands `#D1479` 18bb2d5
- decode (rlfunc): work around incomplete bytes in keyseq (reported by onelittlehope) `#D1483` 3559658 beb0383 37363be
- main: fix a bug that unset `IFS` is not correctly restored `#D1489` 808f6f7
Expand Down
4 changes: 4 additions & 0 deletions lib/init-bind.sh
Expand Up @@ -23,6 +23,10 @@ function ble/init:bind/append-macro {
ble/util/print "${condition}builtin bind '${sarg//$q/$Q}'" >> "$fbind1"
ble/util/print "${condition}builtin bind -r '${rarg//$q/$Q}'" >> "$fbind2"
}
function ble/init:bind/bind-s {
local sarg=$1
ble/util/print "builtin bind '${sarg//$q/$Q}'" >> "$fbind1"
}

function ble/init:bind/generate-binder {
local fbind1=$_ble_base_cache/decode.bind.$_ble_bash.$bleopt_input_encoding.bind
Expand Down
7 changes: 7 additions & 0 deletions note.txt
Expand Up @@ -6463,6 +6463,13 @@ bash_tips

2022-07-10

* encoding:C: 初期化出来ない。大量のエラーメッセージ [#D1839]

0.2 backport 中に気づいたのだが encoding:C で既に削除された関数
ble/init:bind/bind-s が使われている。実際に input_encoding=C にして開始して
みると大量のエラーメッセージが表示されて変な文字列が入力される。
これは単に改めて関数を追加する事にした。

* complete: zoxide completion が動かない (reported by ferdinandyb) [#D1838]
https://github.com/akinomyoga/ble.sh/issues/207

Expand Down

0 comments on commit c3bba5b

Please sign in to comment.