summaryrefslogtreecommitdiffstats
path: root/src/readline.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/readline.rs')
-rw-r--r--src/readline.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/readline.rs b/src/readline.rs
index 8ff001c..cc6c776 100644
--- a/src/readline.rs
+++ b/src/readline.rs
@@ -3,12 +3,12 @@ use textmode::Textmode as _;
pub struct Readline {
prompt: String,
input_line: String,
- action: async_std::channel::Sender<crate::state::Action>,
+ action: async_std::channel::Sender<crate::action::Action>,
}
impl Readline {
pub fn new(
- action: async_std::channel::Sender<crate::state::Action>,
+ action: async_std::channel::Sender<crate::action::Action>,
) -> Self {
Self {
prompt: "$ ".into(),
@@ -29,7 +29,7 @@ impl Readline {
}
textmode::Key::Ctrl(b'm') => {
self.action
- .send(crate::state::Action::Run(self.input()))
+ .send(crate::action::Action::Run(self.input()))
.await
.unwrap();
self.clear_input();
@@ -38,7 +38,7 @@ impl Readline {
_ => {}
}
self.action
- .send(crate::state::Action::Render)
+ .send(crate::action::Action::Render)
.await
.unwrap();
false