Don't GC view when process is active, don't show some buffers

This commit is contained in:
Krzosa Karol
2026-01-03 15:04:46 +01:00
parent bfcab9b3c3
commit 1b8f0b12e8
2 changed files with 7 additions and 0 deletions

View File

@@ -508,6 +508,10 @@ void GarbageCollect() {
if (ref) {
continue;
}
if (ProcessIsActive(it->id)) {
continue;
}
}
RawAppendf(GCInfoBuffer, "View %d %S\n", (int)it->id.id, buffer ? buffer->name : String{"NULL"});

View File

@@ -52,6 +52,9 @@ void CMD_ShowBufferList() {
NextActiveWindowID = command_bar.window->id;
ResetBuffer(command_bar.buffer);
For (Buffers) {
if (it->special || it->temp || it->is_dir) {
if (it->id != NullBufferID && it->id != BuildBufferID) continue;
}
RawAppendf(command_bar.buffer, "\n%S", it->name);
}
command_bar.view->update_scroll = true;