zsh-workers
 help / color / mirror / code / Atom feed
From: Peter Stephenson <pws@ifh.de>
To: zsh-workers@math.gatech.edu (Zsh hackers list)
Subject: Re: multi-line history storing bug (beta13)
Date: Mon, 15 Jan 1996 17:10:15 +0100	[thread overview]
Message-ID: <9601151610.AA09130@sgi.ifh.de> (raw)
In-Reply-To: "mason@werple.net.au"'s message of "Tue, 16 Jan 1996 01:45:06 MET." <199601151445.BAA21991@werple.net.au>

mason@werple.net.au wrote:
> Heyla, doing this on my machine loses the last line in the history list.
> 
> % for I in test
> do echo hi
> #test
> done
> %
> 
> It seems to happen in multiline editing when I put in a comment. Anyone else
> get this?

It needs to pretend the newline character at the end of the comment is
a word, like other newlines.  (If it doesn't count the newline as a
word, it'll assume that the text ends with the previous word.)  I
didn't do that much detailed checking with multi line buffers, or with
interactivecomments.

*** Src/lex.c.icom	Thu Dec 21 23:44:21 1995
--- Src/lex.c	Mon Jan 15 16:49:00 1996
***************
*** 379,384 ****
--- 379,385 ----
  	    peek = LEXERR;
  	else {
  	    hwend();
+ 	    hwbegin(0);
  	    hwaddc('\n');
  	    peek = NEWLIN;
  	}


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


  parent reply	other threads:[~1996-01-15 16:25 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-01-15 14:45 Geoff Wing
1996-01-15 15:21 ` Zefram
1996-01-15 16:10 ` Peter Stephenson [this message]
1996-01-16  5:07   ` yamagata
1996-01-16  9:10     ` yamagata

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=9601151610.AA09130@sgi.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).