mirror of
https://github.com/chatmail/core.git
synced 2026-04-19 14:36:29 +03:00
trim() commandline as rustyline adds lineends to commands eg. from inside IntelliJ IDEA
This commit is contained in:
committed by
dignifiedquire
parent
dc7d23ec47
commit
05e097baaa
@@ -442,7 +442,7 @@ fn main_0(args: Vec<String>) -> Result<(), failure::Error> {
|
||||
// TODO: ignore "set mail_pw"
|
||||
rl.add_history_entry(line.as_str());
|
||||
let ctx = ctx.clone();
|
||||
match unsafe { handle_cmd(line.as_str(), ctx) } {
|
||||
match unsafe { handle_cmd(line.trim(), ctx) } {
|
||||
Ok(ExitResult::Continue) => {}
|
||||
Ok(ExitResult::Exit) => break,
|
||||
Err(err) => println!("Error: {}", err),
|
||||
|
||||
Reference in New Issue
Block a user