What
Alt+D was bound to deleteWordForward, which removed the next word without pushing it to the kill ring — so Ctrl+Y could not yank it back. That is inconsistent with Ctrl+W (kill word backward, which does save) and with emacs/readline where Alt+D is "kill-word".
- Point Alt+D at the existing
killWordForward(same logic, but saves to the kill ring). - Remove the now-unused
deleteWordForwardduplicate.
Verification
zig buildclean (exit 0).- PTY: in
echo GONE, cursor beforeGONE, Alt+D then Ctrl+Y restoresecho GONE→ printsGONE.
One-line binding change + dead-code removal; no API changes.