cleaning up

mine
derailed 2020-02-10 19:27:22 -07:00
parent bf0fabcb9e
commit 8299129baf
1 changed files with 2 additions and 0 deletions

View File

@ -73,11 +73,13 @@ func (d *Details) Init(_ context.Context) error {
return nil
}
// TextChanged notifies the model changed.
func (d *Details) TextChanged(lines []string) {
d.SetText(colorizeYAML(d.app.Styles.Views().Yaml, strings.Join(lines, "\n")))
d.ScrollToBeginning()
}
// TextFiltered notifies when the filter changed.
func (d *Details) TextFiltered(lines []string, matches fuzzy.Matches) {
d.currentRegion, d.maxRegions = 0, 0