Krolyxon
Commit 08c4f41

rmptui08c4f41

fix crash when using playlist append

Author
krolxon
Date
2024-06-08 00:00 +0530
Parent
6c378af
Commit
08c4f41066639433ac5e08f821c7a59993e122d1

+2 −1

1 file changed

  1. M src/event/pl_append_keys.rs +2 −1
M src/event/pl_append_keys.rs View
@@ -52,7 +52,8 @@ pub fn hande_pl_append_keys(key_event: KeyEvent, app: &mut App) -> AppResult<()>
5252 }
5353 }
5454 } else if t == "directory" {
55− for (t, f) in app.conn.conn.listfiles(f)?.iter() {
55+ let file = format!("{}/{}", app.browser.path, f);
56+ for (t, f) in app.conn.conn.listfiles(&file)?.iter() {
5657 // dir_vec.push((t, f));
5758 if t == "file"
5859 && Path::new(&f).has_extension(&[