Radish alpha
r
Radicle terminal user interface
Radicle
Git (anonymous pull)
Log in to clone via SSH
patch-list: Quitting returns an empty patch-id
Erik Kundt committed 2 years ago
commit 50c5f756c03106ad9284547b2de18204ee8df73b
parent c3f79bbf5508303eb0e101de472322ef695a54bf
1 file changed +1 -1
modified bin/commands/patch.rs
@@ -81,7 +81,7 @@ pub fn run(options: Options, _ctx: impl terminal::Context) -> anyhow::Result<()>

            let patch_id = Window::default()
                .run(&mut list::App::new(context), 1000 / FPS)?
-
                .ok_or_else(|| anyhow!("expected a patch id"))?;
+
                .unwrap_or_default();

            eprint!("{patch_id}");
        }