Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/editor/Popout.zig
Original file line number Diff line number Diff line change
Expand Up @@ -336,8 +336,9 @@ pub const Shown = struct {
/// stacks them: the floats, then the dialogs and menus. After `endFrame`.
pub fn windowsShown(buf: []Shown) []Shown {
var n: usize = 0;
for (outs) |slot| {
const o = slot orelse continue;
// By pointer: the title is a slice of the float's own buffer, which a copy would take with it.
for (&outs) |*slot| {
const o = if (slot.*) |*o| o else continue;
const p = o.part orelse continue;
const t = o.target orelse continue;
if (n == buf.len) break;
Expand Down
Loading