Skip to content

Commit

Permalink
View: Added IsTained()
Browse files Browse the repository at this point in the history
 * This might be usefull for people who want to check that

See jesseduffield@77d7618

Co-authored-by: Jesse Duffield <jessedduffield@gmail.com>
Signed-off-by: Glenn Vriesman <glenn.vriesman@gmail.com>
  • Loading branch information
glvr182 and jesseduffield committed Sep 10, 2019
1 parent da1361c commit 8c37133
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions view.go
Original file line number Diff line number Diff line change
Expand Up @@ -470,6 +470,11 @@ func (v *View) Rewind() {
}
}

// IsTainted tells us if the view is tainted
func (v *View) IsTainted() bool {
return v.tainted
}

// draw re-draws the view's contents.
func (v *View) draw() error {
if !v.Visible {
Expand Down

0 comments on commit 8c37133

Please sign in to comment.