aboutsummaryrefslogtreecommitdiff
path: root/src/term/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/term/mod.rs')
-rw-r--r--src/term/mod.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/term/mod.rs b/src/term/mod.rs
index 29bf6b83..4e4a022c 100644
--- a/src/term/mod.rs
+++ b/src/term/mod.rs
@@ -298,7 +298,7 @@ impl Term {
let scroll_region = Line(0)..grid.num_lines();
Term {
- dirty: true,
+ dirty: false,
grid: grid,
alt_grid: alt,
alt: false,
@@ -313,6 +313,11 @@ impl Term {
}
}
+ #[inline]
+ pub fn needs_draw(&self) -> bool {
+ self.dirty
+ }
+
pub fn string_from_selection(&self, span: &Span) -> String {
/// Need a generic push() for the Append trait
trait PushChar {