Skip to content

Commit

Permalink
Fix ansi parser
Browse files Browse the repository at this point in the history
  • Loading branch information
gyscos committed Jun 5, 2024
1 parent ea2e0be commit 1647c09
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cursive-core/src/theme/effect.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,11 @@ impl Effects {
}
}

/// Sets the given effect to be `InheritParent`.
pub fn remove(&mut self, effect: Effect) {
self.statuses[effect] = EffectStatus::InheritParent;
}

/// Sets the given effect to be `OppositeParent`.
pub fn insert(&mut self, effect: Effect) {
self.statuses[effect] = EffectStatus::OppositeParent;
Expand Down

0 comments on commit 1647c09

Please sign in to comment.