diff options
author | Reto Brunner <reto@labrat.space> | 2020-07-30 23:22:16 +0200 |
---|---|---|
committer | Reto Brunner <reto@labrat.space> | 2020-07-30 23:22:16 +0200 |
commit | 6ee7b1c3fd40b0e2f93dcaa7ffb3b0bdd56ac285 (patch) | |
tree | b84df04a645c1fd2ee94d7a08f2f9c717930e9ab /widgets/msgviewer.go | |
parent | 2c244222d508a32d3f5ba600944a46b6fdea1a10 (diff) | |
download | aerc-6ee7b1c3fd40b0e2f93dcaa7ffb3b0bdd56ac285.tar.gz |
Revert "Rename selecter to selector"
This reverts commit 2c244222d508a32d3f5ba600944a46b6fdea1a10.
Diffstat (limited to 'widgets/msgviewer.go')
-rw-r--r-- | widgets/msgviewer.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/widgets/msgviewer.go b/widgets/msgviewer.go index 6a917413..30c83f70 100644 --- a/widgets/msgviewer.go +++ b/widgets/msgviewer.go @@ -458,7 +458,7 @@ type PartViewer struct { sink io.WriteCloser source io.Reader term *Terminal - selector *Selector + selecter *Selecter grid *ui.Grid uiConfig config.UIConfig } @@ -530,7 +530,7 @@ func NewPartViewer(acct *AccountView, conf *config.AercConfig, {ui.SIZE_WEIGHT, ui.Const(1)}, }) - selector := NewSelector([]string{"Save message", "Pipe to command"}, + selecter := NewSelecter([]string{"Save message", "Pipe to command"}, 0, acct.UiConfig()). OnChoose(func(option string) { switch option { @@ -541,7 +541,7 @@ func NewPartViewer(acct *AccountView, conf *config.AercConfig, } }) - grid.AddChild(selector).At(2, 0) + grid.AddChild(selecter).At(2, 0) pv := &PartViewer{ conf: conf, @@ -554,7 +554,7 @@ func NewPartViewer(acct *AccountView, conf *config.AercConfig, showHeaders: conf.Viewer.ShowHeaders, sink: pipe, term: term, - selector: selector, + selecter: selecter, grid: grid, uiConfig: acct.UiConfig(), } @@ -686,7 +686,7 @@ func (pv *PartViewer) Draw(ctx *ui.Context) { ) ctx.Printf(0, 2, style, "You can still :save the message or :pipe it to an external command") - pv.selector.Focus(true) + pv.selecter.Focus(true) pv.grid.Draw(ctx) return } @@ -713,7 +713,7 @@ func (pv *PartViewer) Event(event tcell.Event) bool { if pv.term != nil { return pv.term.Event(event) } - return pv.selector.Event(event) + return pv.selecter.Event(event) } type HeaderView struct { |