Merge branch 'master' into flub/send-backup

This commit is contained in:
Floris Bruynooghe
2023-03-03 09:48:33 +01:00
7 changed files with 45 additions and 30 deletions

View File

@@ -12,7 +12,7 @@ dirs = "4"
log = "0.4.16"
pretty_env_logger = "0.4"
rusqlite = "0.28"
rustyline = "10"
rustyline = "11"
tokio = { version = "1", features = ["fs", "rt-multi-thread", "macros"] }
[features]

View File

@@ -352,7 +352,7 @@ async fn start(args: Vec<String>) -> Result<(), Error> {
match readline {
Ok(line) => {
// TODO: ignore "set mail_pw"
rl.add_history_entry(line.as_str());
rl.add_history_entry(line.as_str())?;
let contine = Handle::current().block_on(async {
match handle_cmd(line.trim(), ctx.clone(), &mut selected_chat).await {
Ok(ExitResult::Continue) => true,