Skip to content

Commit

Permalink
menu (menu-style:desc): fix not working "bleopt menu_desc_multicolumn…
Browse files Browse the repository at this point in the history
…_width="
  • Loading branch information
akinomyoga committed Jan 8, 2022
1 parent e363f1b commit 2140d1e
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/ChangeLog.md
Expand Up @@ -80,6 +80,7 @@
- blerc: fix the name of the option `bleopt canvas_winch_action` (reported by Knusper) b1be640
- menu (menu-style:desc): improve descriptions (motivated by Shahabaz-Bagwan) `#D1685` 4de1b45
- menu (menu-style:desc): support multicolumns (motivated by Shahabaz-Bagwan) `#D1686` 231dc39
- menu (menu-style:desc): fix not working `bleopt menu_desc_multicolumn_width=` `#D1727` 0000000
- term: let <kbd>DECSCUSR</kbd> pass through terminal multiplexers (motivated by cmplstofB) `#D1697` a3349e4
- complete: requote for more compact representations on full completions `#D1700` a1859b6
- complete: improve support for `declare` and `[[ ... ]]` `#D1701` da38404
Expand Down
2 changes: 1 addition & 1 deletion lib/core-complete.sh
Expand Up @@ -388,9 +388,9 @@ function ble/complete/menu-style:desc/construct-page {
ble/color/face2sgr-ansi syntax_delimiter; local desc_sgrt=$ret

local ncolumn=1 nline=$lines
local nrest_item=$((${#menu_items[@]}-begin))
if [[ $bleopt_menu_desc_multicolumn_width ]]; then
ncolumn=$((cols/bleopt_menu_desc_multicolumn_width))
local nrest_item=$((${#menu_items[@]}-begin))
if ((ncolumn<1)); then
ncolumn=1
elif ((ncolumn>nrest_item)); then
Expand Down
11 changes: 11 additions & 0 deletions note.txt
Expand Up @@ -1675,6 +1675,11 @@ bash_tips
ToDo
-------------------------------------------------------------------------------

2022-01-08

* mandb: echo のオプションの抽出 (help echo) がおかしい at fc35 vm
chatoyancy では問題は発生していない

2021-12-22

* ディレクトリ固有の local commands & aliases を可能にする?
Expand Down Expand Up @@ -5792,6 +5797,12 @@ bash_tips

2022-01-08

* complete (menu-style:desc): fix not working "bleopt menu_desc_multicolumn_width=" [#D1727]

menu_desc_multicolumn_width= として multicolumn を無効化しようとするとゼロ
除算のエラーになる。定義していない変数を誤って参照して ncolumn=0 になってい
た。修正した。

* decode: bind の古い形式が使えなくなっている (reported by returntrip) [#D1726]
https://github.com/akinomyoga/ble.sh/issues/165

Expand Down

0 comments on commit 2140d1e

Please sign in to comment.