Skip to content

Commit

Permalink
edit: fix load of undo records (fixup e9be69e)
Browse files Browse the repository at this point in the history
  • Loading branch information
akinomyoga committed Feb 27, 2021
1 parent e9be69e commit 61a57c0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions note.txt
Expand Up @@ -3842,6 +3842,9 @@ bash_tips
* ok: 他に似たような書き換えミスがなかったかどうか確認してみたが大丈夫の様
である。

後で改めて見てみたら修正によって破壊している。最近どうも全然駄目だ。毎回修
正する時に新しいミスを導入にしている。改めて修正した。

2021-02-24

* Makefile: keymap/*.txt に対する規則を削除してはいけなかった (reported by nihilismus) [#D1496]
Expand Down
4 changes: 2 additions & 2 deletions src/edit.sh
Expand Up @@ -5602,8 +5602,8 @@ function ble-edit/undo/.check-hindex {

# load
if [[ ${_ble_edit_undo_history[hindex]} ]]; then
local -a data=()
builtin eval -- "data=(${_ble_edit_undo_history[hindex]})"
local data; builtin eval -- "data=(${_ble_edit_undo_history[hindex]})"
_ble_edit_undo=("${data[@]:1}")
_ble_edit_undo_index=${data[0]}
else
_ble_edit_undo=()
Expand Down

0 comments on commit 61a57c0

Please sign in to comment.