1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-11-01 06:20:55 +01:00

Wayne: Fix two history bugs that were causing the

failure of `print -s'.
This commit is contained in:
Bart Schaefer 2000-05-30 03:43:27 +00:00
parent 76868bdc6a
commit 8564aa5c0d
5 changed files with 30 additions and 23 deletions

View file

@ -1059,7 +1059,7 @@ scanpmhistory(HashTable ht, ScanFunc func, int flags)
{
struct param pm;
int i = addhistnum(curhist, -1, HIST_FOREIGN);
Histent he = quietgethistent(i, GETHIST_UPWARD);
Histent he = gethistent(i, GETHIST_UPWARD);
char buf[40];
pm.flags = PM_SCALAR | PM_READONLY;
@ -1096,7 +1096,7 @@ histwgetfn(Param pm)
LinkList l = newlinklist(), ll;
LinkNode n;
int i = addhistnum(curhist, -1, HIST_FOREIGN), iw;
Histent he = quietgethistent(i, GETHIST_UPWARD);
Histent he = gethistent(i, GETHIST_UPWARD);
ll = bufferwords(NULL, NULL, NULL);
for (n = firstnode(ll); n; incnode(n))