diff options
| author | Kyle Sutherland-Cash <kyle.sutherlandcash@gmail.com> | 2021-05-08 04:32:31 -0700 |
|---|---|---|
| committer | Kyle Sutherland-Cash <kyle.sutherlandcash@gmail.com> | 2021-05-08 04:32:31 -0700 |
| commit | 9a3e8bcb84caa0fd103b6d9c365fb97690c1c5ea (patch) | |
| tree | b866062e2880088fce6770553db564721876fc39 /src/common/errors.rs | |
| parent | README: shortening + add explanation (#470) (diff) | |
| download | sl0ppij-9a3e8bcb84caa0fd103b6d9c365fb97690c1c5ea.tar.gz sl0ppij-9a3e8bcb84caa0fd103b6d9c365fb97690c1c5ea.tar.xz sl0ppij-9a3e8bcb84caa0fd103b6d9c365fb97690c1c5ea.zip | |
First round of merging against server-client and color stuff
Diffstat (limited to 'src/common/errors.rs')
| -rw-r--r-- | src/common/errors.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/common/errors.rs b/src/common/errors.rs index d8327462..46121312 100644 --- a/src/common/errors.rs +++ b/src/common/errors.rs @@ -1,9 +1,9 @@ //! Error context system based on a thread-local representation of the call stack, itself based on //! the instructions that are sent between threads. -use super::{ServerInstruction, ASYNCOPENCALLS, OPENCALLS}; +use super::{thread_bus::ASYNCOPENCALLS, thread_bus::OPENCALLS, ServerInstruction}; use crate::client::ClientInstruction; -use crate::pty_bus::PtyInstruction; +use crate::pty::PtyInstruction; use crate::screen::ScreenInstruction; use serde::{Deserialize, Serialize}; @@ -14,7 +14,7 @@ use std::fmt::{Display, Error, Formatter}; const MAX_THREAD_CALL_STACK: usize = 6; #[cfg(not(test))] -use super::SenderWithContext; +use super::thread_bus::SenderWithContext; #[cfg(not(test))] use std::panic::PanicInfo; /// Custom panic handler/hook. Prints the [`ErrorContext`]. @@ -200,7 +200,7 @@ pub enum ScreenContext { PageScrollDown, ClearScroll, CloseFocusedPane, - ToggleActiveSyncTab, + ToggleActiveSyncPanes, ToggleActiveTerminalFullscreen, SetSelectable, SetInvisibleBorders, @@ -261,7 +261,7 @@ impl From<&ScreenInstruction> for ScreenContext { ScreenInstruction::UpdateTabName(_) => ScreenContext::UpdateTabName, ScreenInstruction::TerminalResize(_) => ScreenContext::TerminalResize, ScreenInstruction::ChangeMode(_) => ScreenContext::ChangeMode, - ScreenInstruction::ToggleActiveSyncTab => ScreenContext::ToggleActiveSyncTab, + ScreenInstruction::ToggleActiveSyncPanes => ScreenContext::ToggleActiveSyncPanes, } } } |
