Subject: Multi-line prompt is the reason

From: "周任飞" <[email-masked]>
Date: Fri, 27 Aug 2021 15:01:37 +0800

Zsh worked well if the prompt is in a single line. The bug comes from multi-line prompt, i.e., when emacs shell used with multi-line prompt, unexpected lines are generated.