fix: clear file list view before showing new diagnostics

This commit is contained in:
CJ van den Berg 2024-08-20 16:04:53 +02:00
parent 521c7befef
commit b656ebc49e
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9

View file

@ -487,6 +487,7 @@ const cmds = struct {
pub fn show_diagnostics(self: *Self, _: Ctx) Result {
const editor = self.editor orelse return;
self.clear_find_in_files_results(.diagnostics);
for (editor.diagnostics.items) |diagnostic| {
try self.add_find_in_files_result(
.diagnostics,