From 10490ec499fff7b932f92a0b19c7e5343a24761d Mon Sep 17 00:00:00 2001 From: Sven Wischnowsky Date: Fri, 1 Mar 2002 10:41:59 +0000 Subject: add $redirections array to completion system parameters, containing information about all redirections on the line; make this and compstate[redirect] contain the file descriptor number (16751) --- Src/Zle/zle_main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Src/Zle/zle_main.c') diff --git a/Src/Zle/zle_main.c b/Src/Zle/zle_main.c index 42c7a6bb3..5af18fbac 100644 --- a/Src/Zle/zle_main.c +++ b/Src/Zle/zle_main.c @@ -1138,6 +1138,7 @@ setup_(Module m) stackhist = stackcs = -1; kungetbuf = (char *) zalloc(kungetsz = 32); comprecursive = 0; + rdstrs = NULL; /* initialise the keymap system */ init_keymaps(); @@ -1192,7 +1193,8 @@ finish_(Module m) zfree(vichgbuf, vichgbufsz); zfree(kungetbuf, kungetsz); free_isrch_spots(); - + if (rdstrs) + freelinklist(rdstrs, freestr); zfree(cutbuf.buf, cutbuf.len); for(i = KRINGCT; i--; ) zfree(kring[i].buf, kring[i].len); -- cgit 1.4.1