aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main.rs4
-rw-r--r--src/term.rs (renamed from src/tiocgwinsz.rs)0
2 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"));
diff --git a/src/tiocgwinsz.rs b/src/term.rs
index f8246fd..f8246fd 100644
--- a/src/tiocgwinsz.rs
+++ b/src/term.rs