fix: close splits when changing projects

This commit is contained in:
CJ van den Berg 2026-01-14 21:27:20 +01:00
parent 725a66e4e2
commit 29e8b4293d
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9

View file

@ -460,6 +460,7 @@ const cmds = struct {
{ {
self.closing_project = true; self.closing_project = true;
defer self.closing_project = false; defer self.closing_project = false;
try close_splits(self, .{});
try self.close_all_editors(); try self.close_all_editors();
self.delete_all_buffers(); self.delete_all_buffers();
self.clear_find_in_files_results(.diagnostics); self.clear_find_in_files_results(.diagnostics);