Skip to content

Commit

Permalink
menu (linewise): fix layout with variable width of line prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
akinomyoga committed Feb 27, 2023
1 parent 8965b61 commit cc852dc
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
3 changes: 2 additions & 1 deletion docs/ChangeLog.md
Expand Up @@ -353,6 +353,7 @@
- complete: fix non-working ambiguous path completion with `..` and `.` in the path `#D1930` 632e90a
- main (`ble-reload`): fix failure by non-existent rcfile `#D1931` 0ceb0cb
- syntax (`ble/syntax/highlight/vartype`): check variable in global scope `#D1932` b7026de
- menu (linewise): fix layout calculation with variable width of line prefix (reported by bkerin) `#D1979` xxxxxxx

## Documentation

Expand Down Expand Up @@ -551,7 +552,7 @@
- prompt-git: ignore untracked files in submodules `#D1829` 4d24f84
- fzf-completion: fix integration (reported by ferdinandyb) `#D1837` 12c022b
- fzf-completion: remove `noquote` (reported by MK-Alias) `#D1889` 0c6291f
- completion: quote only with `filenames` when `ble/syntax-raw` is specified `#D1978` xxxxxxx
- completion: quote only with `filenames` when `ble/syntax-raw` is specified (reported by christianknauer) `#D1978` xxxxxxx
- README: update description on `_ble_contrib_fzf_base` (reported by Strykar) `#D1904` 09bb4d3
- fzf-initialize: check directory existence before adding it to `PATH` (reported by Strykar) `#D1904` 09bb4d3
- colorglass: add color filter `#D1902` 88e74cc
Expand Down
2 changes: 1 addition & 1 deletion lib/core-complete.sh
Expand Up @@ -341,8 +341,8 @@ function ble/complete/menu-style:linewise/construct-page {
local prefix1; ble/util/sprintf prefix1 "$prefix_format" "$((index+1))"
LINES=1 COLUMNS=$max_icon_width y=0 ble/canvas/trace "$prefix1" truncate:relative:measure-bbox; esc1=$ret
if ((x<prefix_width)); then
x=$prefix_width
esc=$esc${_ble_string_prototype::prefix_width-x}$esc1
x=$prefix_width
else
esc=$esc$esc1
fi
Expand Down
6 changes: 6 additions & 0 deletions note.txt
Expand Up @@ -6590,6 +6590,12 @@ bash_tips

2023-02-27

* menu (linewise): 行番号を表示すると表示レイアウトが壊れる (reported by bkerin) [#D1979]
https://github.com/akinomyoga/ble.sh/discussions/284
https://github.com/akinomyoga/ble.sh/issues/286

これは簡単なミスだった。単に x を更新した後に x を参照していた。すぐ直った。

* completion: fzf-completion がまた動かなくなっている (reported by christianknauer) [#D1978]
https://github.com/akinomyoga/ble.sh/issues/285

Expand Down

0 comments on commit cc852dc

Please sign in to comment.