zsh-workers
 help / color / mirror / code / Atom feed
* Hitting Ctrl-c during correction messes up formating
@ 2015-10-15  7:11 Markus Trippelsdorf
  2015-10-15  7:56 ` Mikael Magnusson
  0 siblings, 1 reply; 3+ messages in thread
From: Markus Trippelsdorf @ 2015-10-15  7:11 UTC (permalink / raw)
  To: zsh-workers

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.

-- 
Markus


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Hitting Ctrl-c during correction messes up formating
  2015-10-15  7:11 Hitting Ctrl-c during correction messes up formating Markus Trippelsdorf
@ 2015-10-15  7:56 ` Mikael Magnusson
  2015-10-15  8:20   ` Markus Trippelsdorf
  0 siblings, 1 reply; 3+ messages in thread
From: Mikael Magnusson @ 2015-10-15  7:56 UTC (permalink / raw)
  To: Markus Trippelsdorf; +Cc: zsh workers

On Thu, Oct 15, 2015 at 9:11 AM, Markus Trippelsdorf
<markus@trippelsdorf.de> 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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Hitting Ctrl-c during correction messes up formating
  2015-10-15  7:56 ` Mikael Magnusson
@ 2015-10-15  8:20   ` Markus Trippelsdorf
  0 siblings, 0 replies; 3+ messages in thread
From: Markus Trippelsdorf @ 2015-10-15  8:20 UTC (permalink / raw)
  To: Mikael Magnusson; +Cc: zsh workers

On 2015.10.15 at 09:56 +0200, Mikael Magnusson wrote:
> On Thu, Oct 15, 2015 at 9:11 AM, Markus Trippelsdorf
> <markus@trippelsdorf.de> 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.

Many thanks.

-- 
Markus


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-10-15  8:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-15  7:11 Hitting Ctrl-c during correction messes up formating Markus Trippelsdorf
2015-10-15  7:56 ` Mikael Magnusson
2015-10-15  8:20   ` Markus Trippelsdorf

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).