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

Re: multi-line history storing bug (beta13)



Hello,

>> 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.

I applied this patch, but still
zsh loss all lines except last, like this.
% sed '
s/:.*//
s/!.*//
' .newsrc

--
yamagata



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