diff --git a/docs/ChangeLog.md b/docs/ChangeLog.md index 44dac1f4..1d89e9b7 100644 --- a/docs/ChangeLog.md +++ b/docs/ChangeLog.md @@ -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 diff --git a/lib/init-bind.sh b/lib/init-bind.sh index f6ef2436..5a90a393 100644 --- a/lib/init-bind.sh +++ b/lib/init-bind.sh @@ -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 diff --git a/note.txt b/note.txt index 27723753..99545d42 100644 --- a/note.txt +++ b/note.txt @@ -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