Skip to content

Commit

Permalink
fix: set startup directory failed is not an error (neovide#2457)
Browse files Browse the repository at this point in the history
  • Loading branch information
TwIStOy authored Apr 2, 2024
1 parent 005aaeb commit bcd9134
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/bridge/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,12 @@ pub async fn setup_tty_startup_directory(
cmd = format!("{} | {}", cmd, handle_command_arg(pos, neovim_args));
}

nvim.command(cmd.as_str()).await
match nvim.command(cmd.as_str()).await {
Ok(_) => {}
Err(e) => log::error!("Error setting startup directory: {}", e),
}

Ok(())
}

fn get_startup_directory(path: &str) -> Option<String> {
Expand Down

0 comments on commit bcd9134

Please sign in to comment.