summaryrefslogtreecommitdiff
path: root/helix-tui/src/terminal.rs
diff options
context:
space:
mode:
Diffstat (limited to 'helix-tui/src/terminal.rs')
-rw-r--r--helix-tui/src/terminal.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/helix-tui/src/terminal.rs b/helix-tui/src/terminal.rs
index 1a0cae3e..ad1e8da3 100644
--- a/helix-tui/src/terminal.rs
+++ b/helix-tui/src/terminal.rs
@@ -137,12 +137,12 @@ where
}
/// Queries the backend for size and resizes if it doesn't match the previous size.
- pub fn autoresize(&mut self) -> io::Result<()> {
+ pub fn autoresize(&mut self) -> io::Result<Rect> {
let size = self.size()?;
if size != self.viewport.area {
self.resize(size)?;
};
- Ok(())
+ Ok(size)
}
/// Synchronizes terminal size, calls the rendering closure, flushes the current internal state