this is wrong, due to the \ at the end of the row that will make the subsequent row treated as part of a multi-line construct but it is not, only the first line has been inserted in the history. in my case the following line in .zsh_history is:
: 1630178638:0;tail -n 1 ~/.zsh_history
if I insert more lines before pressing ctrl-g just the last one is missing:
echo ab\<enter>
> bc\<enter>
> de<ctrl-G>
tail -n 3 zsh-history
: 1630178860:0;echo ab\\
bc\
: 1630178870:0;tail -n 3 ~/.zsh_history
this may be due to my very old zsh (5.1.1)
Pier Paolo Grassi