mirror of
https://github.com/uqbar-dao/nectar.git
synced 2025-01-03 06:11:01 +03:00
hotfix: allow empty line in term
This commit is contained in:
parent
e85cd8e188
commit
f1441ac351
@ -21,6 +21,9 @@ struct TerminalState {
|
||||
}
|
||||
|
||||
fn parse_command(state: &mut TerminalState, line: &str) -> anyhow::Result<()> {
|
||||
if line.is_empty() {
|
||||
return Ok(());
|
||||
}
|
||||
let (head, args) = line.split_once(" ").unwrap_or((line, ""));
|
||||
let process = match state.aliases.get(head) {
|
||||
Some(pid) => pid.clone(),
|
||||
|
Loading…
Reference in New Issue
Block a user