#87·mcfly

zsh: mcfly incorrectly parses multi-line zhistory entries

Author: durin42Created Jul 1, 2020Updated Sep 22, 2025
Labelsbughelp wantedgood first issue

if you have a command typed as

bash
echo foo \
  bar

that ends up as separate entries in mcfly, rather than a single one. It looks like mcfly is incorrectly parses the history entry? The relevant snippet for that from my .zsh_history is:

bash
: 1593624164:0;echo foo \\
 bar

It looks like mcfly is getting confused by this, and I think it only gets the last line of the command.