diff --git a/src/shell.sh b/src/shell.sh index 2e5a9d0..7978dde 100644 --- a/src/shell.sh +++ b/src/shell.sh @@ -635,6 +635,11 @@ shellframe_shell() { _current="$_SHELLFRAME_SHELL_NEXT" _SHELLFRAME_SHELL_NEXT="" _screen_done=1 + else + # _quit activated an overlay (e.g. confirm dialog) without + # navigating screens — draw immediately so the overlay is + # visible before the next key is read. + _shellframe_shell_draw_if_dirty "$_prefix" "$_current" fi else _current="__QUIT__"; _screen_done=1 diff --git a/src/widgets/grid.sh b/src/widgets/grid.sh index 094d672..17675d0 100644 --- a/src/widgets/grid.sh +++ b/src/widgets/grid.sh @@ -326,9 +326,6 @@ shellframe_grid_render() { local _row_bg="$_grid_bg" if (( _is_cursor && ${SHELLFRAME_GRID_FOCUSED:-0} )); then _row_bg="${SHELLFRAME_GRID_CURSOR_STYLE:-$_rev}" - elif (( _is_cursor )); then - # Unfocused cursor — subtle dark-gray highlight - _row_bg=$'\033[48;5;236m' elif [[ -n "${SHELLFRAME_GRID_STRIPE_BG:-}" ]] && (( _ridx % 2 == 1 )); then _row_bg="$SHELLFRAME_GRID_STRIPE_BG" fi