aboutsummaryrefslogtreecommitdiffstats
path: root/src/common/errors.rs
diff options
context:
space:
mode:
authordenis <denismaximov98@gmail.com>2021-04-13 11:30:54 +0300
committerdenis <denismaximov98@gmail.com>2021-04-13 11:30:54 +0300
commite5526df46af1d7b86d146c6041492e93c62813e5 (patch)
tree745f72331bc1b0ea16fc4fe796531b08cf964372 /src/common/errors.rs
parentwip: looks cleaner (diff)
parentfix(performance): remove unnecessary allocations from pty (#264) (diff)
downloadsl0ppij-e5526df46af1d7b86d146c6041492e93c62813e5.tar.gz
sl0ppij-e5526df46af1d7b86d146c6041492e93c62813e5.tar.xz
sl0ppij-e5526df46af1d7b86d146c6041492e93c62813e5.zip
Merge branch 'main' into x-colors
Diffstat (limited to 'src/common/errors.rs')
-rw-r--r--src/common/errors.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/errors.rs b/src/common/errors.rs
index 1548aec0..9801428c 100644
--- a/src/common/errors.rs
+++ b/src/common/errors.rs
@@ -168,7 +168,7 @@ impl Display for ContextType {
/// Stack call representations corresponding to the different types of [`ScreenInstruction`]s.
#[derive(Debug, Clone, Copy, PartialEq)]
pub enum ScreenContext {
- HandlePtyEvent,
+ HandlePtyBytes,
Render,
NewPane,
HorizontalSplit,
@@ -210,7 +210,7 @@ pub enum ScreenContext {
impl From<&ScreenInstruction> for ScreenContext {
fn from(screen_instruction: &ScreenInstruction) -> Self {
match *screen_instruction {
- ScreenInstruction::Pty(..) => ScreenContext::HandlePtyEvent,
+ ScreenInstruction::PtyBytes(..) => ScreenContext::HandlePtyBytes,
ScreenInstruction::Render => ScreenContext::Render,
ScreenInstruction::NewPane(_) => ScreenContext::NewPane,
ScreenInstruction::HorizontalSplit(_) => ScreenContext::HorizontalSplit,