summaryrefslogtreecommitdiffstats
path: root/src/shell/history/entry.rs
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2022-01-05 07:30:34 -0500
committerJesse Luehrs <doy@tozt.net>2022-01-05 07:30:34 -0500
commitf9c5cb86304748baf0da99126bf75c5a3cd3e773 (patch)
tree7583e15d3e6b82db02b3815516309fc4bb4ebfb3 /src/shell/history/entry.rs
parenta30174620d6b64f838989a634c265a353b2ab117 (diff)
downloadnbsh-f9c5cb86304748baf0da99126bf75c5a3cd3e773.tar.gz
nbsh-f9c5cb86304748baf0da99126bf75c5a3cd3e773.zip
and more simplification
Diffstat (limited to 'src/shell/history/entry.rs')
-rw-r--r--src/shell/history/entry.rs10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/shell/history/entry.rs b/src/shell/history/entry.rs
index ab08a72..d804c92 100644
--- a/src/shell/history/entry.rs
+++ b/src/shell/history/entry.rs
@@ -1,10 +1,8 @@
use crate::shell::prelude::*;
-use std::os::unix::process::ExitStatusExt as _;
-
pub struct Entry {
cmdline: String,
- env: crate::Env,
+ env: Env,
vt: vt100::Parser,
audible_bell_state: usize,
visual_bell_state: usize,
@@ -19,7 +17,7 @@ pub struct Entry {
impl Entry {
pub fn new(
cmdline: String,
- env: crate::Env,
+ env: Env,
size: (u16, u16),
input: async_std::channel::Sender<Vec<u8>>,
resize: async_std::channel::Sender<(u16, u16)>,
@@ -216,7 +214,7 @@ impl Entry {
&self.cmdline
}
- pub fn env(&self) -> &crate::Env {
+ pub fn env(&self) -> &Env {
&self.env
}
@@ -273,7 +271,7 @@ impl Entry {
pub async fn finish(
&mut self,
- env: crate::Env,
+ env: Env,
event_w: async_std::channel::Sender<Event>,
) {
self.exit_info = Some(ExitInfo::new(*env.latest_status()));