diff options
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs index 711f920..a516ea4 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,5 +1,5 @@ mod rope; -mod tiocgwinsz; +mod term; use rope::Rope; use std::ffi::{OsStr, OsString}; @@ -12,7 +12,7 @@ fn edit(file: &OsStr) -> Result<(), String> { return Err(format!("open file {}: {}", file.to_string_lossy(), err)); } }; - let size = match tiocgwinsz::size() { + let size = match term::size() { Some(size) => size, None => { return Err(String::from("cannot get terminal size")); |
