prevent empty cwd in terminal view (#8924)
closes #8825 Release Notes: - N/A
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user