diff --git a/column_editor.go b/column_editor.go index 44e7d1e..4124b51 100644 --- a/column_editor.go +++ b/column_editor.go @@ -72,7 +72,9 @@ func (self *ColumnEditor) select_right_column() *ColumnEditor { //----------------------------------------------------------------------------- func (self *ColumnEditor) execute() *ColumnEditor { - self.screen.Draw(self.quotes.Reorder()) + if self.profile.Reorder() == nil { + self.screen.Draw(self.quotes) + } return self } diff --git a/mop/mop.go b/mop/mop.go index 57df5cd..5c925a1 100644 --- a/mop/mop.go +++ b/mop/mop.go @@ -58,7 +58,9 @@ loop: } else if event.Ch == 'o' || event.Ch == 'O' { column_editor = new(mop.ColumnEditor).Initialize(screen, quotes) } else if event.Ch == 'g' || event.Ch == 'G' { - screen.Draw(quotes.Regroup()) + if profile.Regroup() == nil { + screen.Draw(quotes) + } } else if event.Ch == '?' || event.Ch == 'h' || event.Ch == 'H' { showing_help = true screen.Clear().Draw(help) diff --git a/screen.go b/screen.go index 32f78e8..c5d8aad 100644 --- a/screen.go +++ b/screen.go @@ -57,9 +57,7 @@ func (self *Screen) Draw(objects ...interface{}) *Screen { self.draw(object.Fetch().Format()) case *Quotes: object := ptr.(*Quotes) - if object.Ready() { - self.draw(object.Fetch().Format()) - } + self.draw(object.Fetch().Format()) default: self.draw(ptr.(string)) } diff --git a/yahoo_quotes.go b/yahoo_quotes.go index 973cf3d..698ec06 100644 --- a/yahoo_quotes.go +++ b/yahoo_quotes.go @@ -123,24 +123,6 @@ func (self *Quotes) RemoveTickers(tickers []string) (removed int, err error) { return } -//----------------------------------------------------------------------------- -func (self *Quotes) Reorder() *Quotes { - if self.profile.Reorder() == nil { - self.stocks = nil // Force fetch. - } - - return self -} - -//----------------------------------------------------------------------------- -func (self *Quotes) Regroup() *Quotes { - if self.profile.Regroup() == nil { - self.stocks = nil // Force fetch. - } - - return self -} - //----------------------------------------------------------------------------- func (self *Quotes) parse(body []byte) *Quotes { lines := bytes.Split(body, []byte{'\n'})