Skip to content

Commit

Permalink
main (ble-reload): fix a bug that the default rcfile is not loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
akinomyoga committed Dec 8, 2022
1 parent 01b4f67 commit 85b5828
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
2 changes: 1 addition & 1 deletion ble.pp
Expand Up @@ -1505,7 +1505,7 @@ function ble/base/print-usage-for-no-argument-command {
}
function ble-reload {
local -a options=()
ble/array#push options --rcfile="${_ble_base_arguments_rcfile:-/dev/null}"
ble/array#push options --rcfile="${_ble_base_rcfile:-/dev/null}"
local name
for name in keep-rlvars noinputrc; do
if [[ :$_ble_base_arguments_opts: == *:"$name":* ]]; then
Expand Down
2 changes: 1 addition & 1 deletion docs/ChangeLog.md
Expand Up @@ -186,6 +186,7 @@
- complete: do not show option descriptions for the empty-word completion (requested by geekscrapy) `#D1846` 1c7f7a1
- syntax (`extract-command`): extract unexpected command names as commands `#D1848` 5b63459
- main (`ble-reload`): preserve the original initialization options `#D1852` d8c92cc
- main (`ble-reload`): fix a bug that the default rcfile is not loaded `#D1914` xxxxxxx
- blehook: print reusable code to restore the user hooks `#D1857` b763677
- blehook: separate internal and user hooks `#D1856` b763677
- blehook: prefer the uniq `!=` to the addition `+=` `#D1871` fe7abd4
Expand Down Expand Up @@ -441,7 +442,6 @@
- util (`modifyOtherKeys`): fix a bug that kitty protocol is never activated `#D1842` 14f3c81
- util (`modifyOtherKeys`): pass-through kitty protocol sequences (motivated by ferdinandyb) `#D1845` f66e0c1


## Test

- github/workflows: add CI checks in macOS and msys2 (requested by aiotter) `##D1881` c5ddacc
Expand Down
15 changes: 11 additions & 4 deletions note.txt
Expand Up @@ -1855,10 +1855,6 @@ bash_tips
- leakvars
- keymap の移動 (これは別 commit にする?)

2022-12-06

* ble-reload した時に M-z が効かなくなる

2022-12-03

* declare -f の出力は特殊関数名には使えないのではないか?
Expand Down Expand Up @@ -6668,6 +6664,17 @@ bash_tips

2022-12-08

* ble-reload した時に M-z が効かなくなる [#D1914]

何とそもそも ble-reload にて blerc が読み込まれていない。確認してみると
--rcfile=/dev/null という事になっている。何も指定していない時には
_ble_base_arguments_rcfile は空になっている。なので空の時にはやはり何も指定
せずに source ble.sh するべきであって、何か特定の blerc は指定しない様にす
る。

? 或いはもしかすると元々指定したかったのは _ble_base_rcfile ではないか?
うーん。そんな気がする→その様に修正した。

* 2021-09-08 complete: sabbrev (magic-space) vs auto-complete [#D1913]

auto-complete で履歴から候補が表示されている時には sabbrev が効かない。そも
Expand Down

0 comments on commit 85b5828

Please sign in to comment.