Do not open files in dialog mode

This commit is contained in:
Jeremy Soller 2024-02-01 15:57:01 -07:00
parent d271159c07
commit c017663557
No known key found for this signature in database
GPG key ID: D02FD439211AF56F

View file

@ -567,7 +567,7 @@ impl Tab {
Location::Path(_) => {
if item.path.is_dir() {
cd = Some(Location::Path(item.path.clone()));
} else {
} else if !self.dialog {
let mut command = open_command(&item.path);
match command.spawn() {
Ok(_) => (),