aboutsummaryrefslogtreecommitdiffstats
path: root/src/common/errors.rs
diff options
context:
space:
mode:
authordenis <denismaximov98@gmail.com>2021-04-08 16:29:52 +0300
committerdenis <denismaximov98@gmail.com>2021-04-08 16:29:52 +0300
commit7774edd45aa872aacbea2c7b0e0ae9d483747056 (patch)
treedfc39c48ebb00cdccbdc956d4a4639ca0f50b405 /src/common/errors.rs
parentwip: sending the ModeInfo on initial plugin load (diff)
parentAdd Kyle to governance.md (diff)
downloadsl0ppij-7774edd45aa872aacbea2c7b0e0ae9d483747056.tar.gz
sl0ppij-7774edd45aa872aacbea2c7b0e0ae9d483747056.tar.xz
sl0ppij-7774edd45aa872aacbea2c7b0e0ae9d483747056.zip
wip: need to figure out how to clear lines
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,
}
}