cleaning up
parent
bf0fabcb9e
commit
8299129baf
|
|
@ -73,11 +73,13 @@ func (d *Details) Init(_ context.Context) error {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TextChanged notifies the model changed.
|
||||||
func (d *Details) TextChanged(lines []string) {
|
func (d *Details) TextChanged(lines []string) {
|
||||||
d.SetText(colorizeYAML(d.app.Styles.Views().Yaml, strings.Join(lines, "\n")))
|
d.SetText(colorizeYAML(d.app.Styles.Views().Yaml, strings.Join(lines, "\n")))
|
||||||
d.ScrollToBeginning()
|
d.ScrollToBeginning()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TextFiltered notifies when the filter changed.
|
||||||
func (d *Details) TextFiltered(lines []string, matches fuzzy.Matches) {
|
func (d *Details) TextFiltered(lines []string, matches fuzzy.Matches) {
|
||||||
d.currentRegion, d.maxRegions = 0, 0
|
d.currentRegion, d.maxRegions = 0, 0
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue