From 011f906aed474d7bb8e9058320b9f31a43b070eb Mon Sep 17 00:00:00 2001 From: Arijit Basu Date: Wed, 22 Mar 2023 18:50:06 +0530 Subject: [PATCH] SelectAll: extend selection list rather than replacing Also applies to ToggleSelectAll i.e. `ctrl-a` --- src/app.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app.rs b/src/app.rs index cdb357f..531a93f 100644 --- a/src/app.rs +++ b/src/app.rs @@ -1501,7 +1501,7 @@ impl App { pub fn select_all(mut self) -> Result { if let Some(d) = self.directory_buffer.as_ref() { - self.selection = d.nodes.clone().into_iter().collect(); + self.selection.extend(d.nodes.clone()); }; Ok(self)