Skip to content

Commit

Permalink
Make sure the minibuffer doesn't allow styles to bleed through
Browse files Browse the repository at this point in the history
The minibuffer is another user of the overlay widget, and I need to
configure it to unilaterally use the style of the upper canvas. Without
this setting, the bold cursor position in the hex view below can bleed
through.
  • Loading branch information
gcla committed Jul 3, 2022
1 parent a259b99 commit a9843d9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion widgets/minibuffer/minibuffer.go
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,11 @@ func (w *Widget) updateCompletions(app gowid.IApp) {
func Open(w *Widget, container gowid.ISettableComposite, width gowid.IWidgetDimension, app gowid.IApp) {
w.ov = overlay.New(w, container.SubWidget(),
gowid.VAlignBottom{}, gowid.RenderWithUnits{U: 3}, // Intended to mean use as much vertical space as you need
gowid.HAlignLeft{Margin: 5, MarginRight: 5}, width)
gowid.HAlignLeft{Margin: 5, MarginRight: 5}, width,
overlay.Options{
IgnoreLowerStyle: true,
},
)

if _, ok := width.(gowid.IRenderFixed); ok {
w.SetContentWidth(gowid.RenderFixed{}, app) // fixed or weight:1, ratio:0.5
Expand Down

0 comments on commit a9843d9

Please sign in to comment.