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

Re: .zsh_history bugreport



On Tue, 30 Oct 2001, Bart Schaefer wrote:
> 16184 probably should go onto the patches branch, too.

Cool.  I just put it there.

One other potential change:  Should readhistline() return "start"
instead of "0" when fgets() fails?  Having fgets() fail with a non-0
start value doesn't look like a very common scenario (because of the
feof() calls), but if we've got some characters in the string, I figure
we might as well return them.  Do you agree?

Index: Src/hist.c
--- Src/hist.c	2001/10/26 23:47:10	1.36
+++ Src/hist.c	2001/10/30 18:19:46
@@ -1793,7 +1793,7 @@
 	}
 	return len;
     }
-    return 0;
+    return start;
 }
 
 /**/

..wayne..



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