Skip to content

Commit

Permalink
edit (read): workaround failglob on vbell inside "read"
Browse files Browse the repository at this point in the history
  • Loading branch information
akinomyoga committed May 9, 2019
1 parent cf1bdff commit 24af642
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ble-edit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6553,6 +6553,12 @@ function ble-edit/read/TRAPWINCH {
ble/textarea#redraw
}
function ble-edit/read/.loop {
# Note: サブシェルの中では eval で failglob を防御できない様だ。
# それが理由で visible-bell を呼び出すと read が終了してしまう。
# 対策として failglob を外す。サブシェルの中なので影響はない筈。
# ref #D1090
shopt -u failglob

local x0=$_ble_line_x y0=$_ble_line_y
ble-edit/read/.setup-textarea
trap -- ble-edit/read/TRAPWINCH WINCH
Expand Down

0 comments on commit 24af642

Please sign in to comment.