szn

Bug 14 — Emacs alt-key bindings are dead code

14. Emacs alt-key bindings are dead code

File: src/mode_copy.zig:399–450 Severity: HIGH Status: ❌ FALSE POSITIVE

All Emacs-style bindings check c.mod.alt. The key parser (src/tty/tty_key.zig) emits escape-prefixed chars as char.code = code, mod = .{} — no alt flag set. So c.mod.alt is always false. Every M-v, M-<, M-> binding is unreachable.

Verdict: Key parser DOES set mod.alt = true for escape-prefixed chars (tty_key.zig:105). Verified with unit tests that pass.