Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Hitting Ctrl-c during correction messes up formating



On Thu, Oct 15, 2015 at 9:11 AM, Markus Trippelsdorf
<markus@xxxxxxxxxxxxxxx> wrote:
> This is a cosmetic issue. Say your current directory is /usr/src/linux
> and your prompt is set up to display it on the right hand side.
> If you hit Ctrl-c during a correction you end up in this state:
>
> markus@x4 linux % la
> zsh: correct 'la' to 'lz' [nyae]? markus@x4 linux %                  <widths of terminal>              /
> usr/src/linux
>
> With the cursor blinking on the 'u' of "usr/src/linux" on the second
> line. Hitting Ctrl-c once more "fixes" the issue.

If you don't setopt nopromptcr, you shouldn't have this problem.

-- 
Mikael Magnusson



Messages sorted by: Reverse Date, Date, Thread, Author