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

Re: Remaining zsh3.0-pre2 bugs



On Jul 8,  2:48am, Zoltan Hidvegi wrote:
} Subject: Re: Remaining zsh3.0-pre2 bugs
}
} And an other bug is that here documents do not appear in the history.
} That's in fact a much more difficult bug.  The bug described above can be
} fixed just by adding hwgetword to the list of saved variables in lexsave.

That doesn't fix the problem of the cursor ending up in the wrong place
following the completion, though.

} The patch below should fix both problems.
}
[parts of patch deleted]
} 
} *** Src/input.c	1996/06/28 02:05:24	2.7
} --- Src/input.c	1996/07/07 23:05:35
} ***************
} *** 303,324 ****
} - /* Read one line of at most n-1 chars from the input queue */
} - 
} - /**/
} - char *
} - ingets(char *buf, int n)
} - {
} - }
} *** Src/hist.c	1996/07/04 19:40:08	2.16
} --- Src/hist.c	1996/07/07 19:41:00
} ***************
} *** 144,149 ****
} --- 144,165 ----
} + /* Read one line of at most n-1 chars from the input */
} + 
} + /**/
} + char *
} + hgets(char *buf, int n)
} + {
} + }

This is simply too amusing.  I originally added hgets() to hist.c back
sometime late in v2.2 or early in v2.3; it then got moved to input.c,
renamed ingets(), and changed to use ingetc(), sometime late in v2.4;
and now we're back to hgets()/hgetc() again.

-- 
Bart Schaefer                             Brass Lantern Enterprises
http://www.well.com/user/barts            http://www.nbn.com/people/lantern

New male in /home/schaefer:
>N  2 Justin William Schaefer  Sat May 11 03:43  53/4040  "Happy Birthday"




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