aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2023-03-26 00:33:26 -0400
committerJesse Luehrs <doy@tozt.net>2023-03-26 00:33:26 -0400
commit222bc5c66f7a4b80c04e805b72c70d0385784b25 (patch)
tree5e47e1bdbf690b6aa6c26789f2a925c9950d0702 /src
parent266ad01efeca37461786b440f4e00cb35634c0ef (diff)
downloadfancy-prompt-222bc5c66f7a4b80c04e805b72c70d0385784b25.tar.gz
fancy-prompt-222bc5c66f7a4b80c04e805b72c70d0385784b25.zip
switch from term_size to terminal_size
Diffstat (limited to 'src')
-rw-r--r--src/data.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/data.rs b/src/data.rs
index ae89c9d..d30068e 100644
--- a/src/data.rs
+++ b/src/data.rs
@@ -69,8 +69,8 @@ fn hostname() -> Option<String> {
}
fn terminal_cols() -> Option<usize> {
- if let Some((w, _h)) = term_size::dimensions() {
- Some(w)
+ if let Some((w, _h)) = terminal_size::terminal_size() {
+ Some(usize::from(w.0))
} else {
None
}