aboutsummaryrefslogtreecommitdiffstats
path: root/src/common/errors.rs
diff options
context:
space:
mode:
authorAram Drevekenin <aram@poor.dev>2021-04-01 17:38:13 +0200
committerGitHub <noreply@github.com>2021-04-01 17:38:13 +0200
commit1739f370f98923d8955e1478bcda564220294829 (patch)
tree1f8f4b2c7f5696787a5be65057ef04c1c5101436 /src/common/errors.rs
parentMerge pull request #244 from a-kenji/main (diff)
downloadsl0ppij-1739f370f98923d8955e1478bcda564220294829.tar.gz
sl0ppij-1739f370f98923d8955e1478bcda564220294829.tar.xz
sl0ppij-1739f370f98923d8955e1478bcda564220294829.zip
* fix(ui): react to terminal window size changes (SIGWINCH) (#245)
* fix(ui): react to terminal window size changes (SIGWINCH) * style(fmt): rustfmt * style(format): remove some warnings * style(fmt): rustfmt
Diffstat (limited to 'src/common/errors.rs')
-rw-r--r--src/common/errors.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/common/errors.rs b/src/common/errors.rs
index 56bf27f4..00284cd4 100644
--- a/src/common/errors.rs
+++ b/src/common/errors.rs
@@ -42,7 +42,7 @@ pub fn handle_panic(
msg,
location.file(),
location.line(),
- backtrace
+ backtrace,
),
(Some(location), None) => format!(
"{}\n\u{1b}[0;0mError: \u{1b}[0;31mthread '{}' panicked: {}:{}\n\u{1b}[0;0m{:?}",
@@ -200,6 +200,7 @@ pub enum ScreenContext {
CloseTab,
GoToTab,
UpdateTabName,
+ TerminalResize,
ChangeMode,
}
@@ -241,6 +242,7 @@ impl From<&ScreenInstruction> for ScreenContext {
ScreenInstruction::CloseTab => ScreenContext::CloseTab,
ScreenInstruction::GoToTab(_) => ScreenContext::GoToTab,
ScreenInstruction::UpdateTabName(_) => ScreenContext::UpdateTabName,
+ ScreenInstruction::TerminalResize => ScreenContext::TerminalResize,
ScreenInstruction::ChangeMode(_) => ScreenContext::ChangeMode,
}
}