2011-09-02 14:19:30 +02:00
|
|
|
--- src/cmd/ksh93/edit/edit.c
|
2013-02-05 18:51:33 +01:00
|
|
|
+++ src/cmd/ksh93/edit/edit.c 2013-02-01 17:18:31.405454238 +0000
|
2016-10-12 13:36:28 +02:00
|
|
|
@@ -1769,8 +1769,13 @@ int ed_histgen(Edit_t *ep,const char *pa
|
2011-09-02 14:19:30 +02:00
|
|
|
mplast->next = mp;
|
|
|
|
mplast->next = 0;
|
|
|
|
}
|
|
|
|
- ep->hlist = (Histmatch_t**)argv;
|
2012-01-20 18:45:26 +01:00
|
|
|
- ep->hfirst = ep->hlist?ep->hlist[0]:0;
|
2011-09-02 14:19:30 +02:00
|
|
|
+ if (argv)
|
|
|
|
+ {
|
|
|
|
+ ep->hlist = (Histmatch_t**)argv;
|
2012-01-20 18:45:26 +01:00
|
|
|
+ ep->hfirst = ep->hlist?ep->hlist[0]:0;
|
2011-09-02 14:19:30 +02:00
|
|
|
+ }
|
|
|
|
+ else
|
2012-01-20 18:45:26 +01:00
|
|
|
+ ep->hfirst = 0;
|
2011-09-02 14:19:30 +02:00
|
|
|
return(ep->hmax=ac);
|
|
|
|
}
|
|
|
|
|