zsh-workers
 help / color / mirror / code / Atom feed
From: Peter Stephenson <pws@ifh.de>
To: zsh-workers@math.gatech.edu (Z Shell workers mailing list)
Subject: Re: more on the lexing bug
Date: Fri, 03 Jan 1997 15:01:53 +0100	[thread overview]
Message-ID: <199701031401.PAA28603@hydra.ifh.de> (raw)
In-Reply-To: "Zefram"'s message of "Sun, 22 Dec 1996 21:03:28 MET." <6914.199612222103@stone.dcs.warwick.ac.uk>

Zefram wrote:
> % \
> > ^D
> internal:  uncompleted line in history
> 
> and the shell exits.

What's even worse,

% echo executing command unexpectedly... \
> ^D
internal:  uncompleted line in history
executing command unexpectedly...

Probably ^D shouldn't behave like EOF within zle unless it's the first
character on the first line of input only.  After all, it's expected
to behave like a continuation of the current line, not a new line.  I
think the following patch fixes the behaviour.  It's so simple I can't
help wondering if somebody removed the isfirstln before for some reason?

*** Src/zle_main.c.ctrld	Fri Jan  3 14:33:35 1997
--- Src/zle_main.c	Fri Jan  3 14:33:14 1997
***************
*** 428,434 ****
  
  	    statusline = NULL;
  	    bindk = getkeycmd();
! 	    if (!ll && c == eofchar) {
  		eofsent = 1;
  		break;
  	    }
--- 428,434 ----
  
  	    statusline = NULL;
  	    bindk = getkeycmd();
! 	    if (!ll && isfirstln && c == eofchar) {
  		eofsent = 1;
  		break;
  	    }

-- 
Peter Stephenson <pws@ifh.de>       Tel: +49 33762 77366
WWW:  http://www.ifh.de/~pws/       Fax: +49 33762 77413
Deutsches Elektronen-Synchrotron --- Institut fuer Hochenergiephysik Zeuthen
DESY-IfH, 15735 Zeuthen, Germany.


      reply	other threads:[~1997-01-03 13:56 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-12-22 21:03 Zefram
1997-01-03 14:01 ` Peter Stephenson [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=199701031401.PAA28603@hydra.ifh.de \
    --to=pws@ifh.de \
    --cc=zsh-workers@math.gatech.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).