Skip to content

Commit

Permalink
prevent empty cwd in terminal view (#8924)
Browse files Browse the repository at this point in the history
closes #8825

Release Notes:

- N/A
  • Loading branch information
zaucy authored Mar 6, 2024
1 parent 8352f39 commit a0fac38
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/terminal_view/src/terminal_view.rs
Original file line number Diff line number Diff line change
Expand Up @@ -885,7 +885,8 @@ impl Item for TerminalView {
})
.ok()
.flatten()
});
})
.filter(|cwd| !cwd.as_os_str().is_empty());

let terminal = project.update(&mut cx, |project, cx| {
project.create_terminal(cwd, None, window, cx)
Expand Down

0 comments on commit a0fac38

Please sign in to comment.