szn

Bug 43 — cmdCopyMode overwrites previous copy mode without deinit

43. cmdCopyMode overwrites previous copy mode without deinit

File: src/cmd/cmd.zig:392–393 Severity: LOW Status: ❌ FALSE POSITIVE

Setting pane.screen.copy_mode = CopyMode.init(...) discards the previous copy mode if one exists. Should set to null or call deinit first.

Verdict: CopyMode is a plain struct with no heap-allocated resources and no deinit. Overwriting the field does not leak memory.