1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-06-15 00:15:32 +02:00

more efficient refreshing

This commit is contained in:
Jesse Duffield
2020-03-26 23:20:12 +11:00
parent fbbd16bd82
commit efb51eee96
5 changed files with 54 additions and 83 deletions

View File

@ -309,6 +309,11 @@ func (gui *Gui) getSearchView() *gocui.View {
return v
}
func (gui *Gui) getStatusView() *gocui.View {
v, _ := gui.g.View("status")
return v
}
func (gui *Gui) trimmedContent(v *gocui.View) string {
return strings.TrimSpace(v.Buffer())
}