Skip to content

fix(ui): clear popover background before rendering#57

Merged
killertux merged 1 commit into
mainfrom
fix/popover-bg
May 26, 2026
Merged

fix(ui): clear popover background before rendering#57
killertux merged 1 commit into
mainfrom
fix/popover-bg

Conversation

@killertux
Copy link
Copy Markdown
Owner

Summary

  • The params-prompt and the saved-query picker overlays were rendering directly on top of the editor and inheriting the underlying glyphs through their background. Block::style(bg) only sets each cell's style — it doesn't overwrite the symbol already in the buffer, so editor characters bled through the popover.
  • Fix: explicitly Clear the popover rect and repaint cells with the theme bg/fg before drawing the block.
  • Bump to 0.17.1.

Test plan

  • cargo fmt && cargo clippy --all-targets -- -D warnings && cargo test
  • Manual: type a query with placeholders + run it — params popup background should be solid, no editor text showing through
  • Manual: :run-saved (bare) → picker overlay shows a solid background over the editor

The params-prompt and saved-query picker overlays were rendering on
top of the editor, but `Block::style(bg)` only sets the cell style —
it doesn't overwrite the glyph already in the buffer. That left the
editor characters showing through the popover.

Explicitly clear the popover rect and repaint with the theme bg
before drawing the block.

Bump to 0.17.1.
@killertux killertux merged commit d9583cd into main May 26, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant