about summary refs log tree commit diff
path: root/Src/Zle/complete.c
diff options
context:
space:
mode:
authorOliver Kiddle <okiddle@yahoo.co.uk>2018-04-07 18:52:37 +0200
committerOliver Kiddle <okiddle@yahoo.co.uk>2018-04-07 18:52:37 +0200
commit8e6c1d8b474c6fcbe3da77a9cb2b1d31d65a6ca4 (patch)
tree967f00cdab2c095830d1a3862edfb56bf5d5a13c /Src/Zle/complete.c
parentd8753f47bb29d6bd5ca8d311b80fadca719982be (diff)
downloadzsh-8e6c1d8b474c6fcbe3da77a9cb2b1d31d65a6ca4.tar.gz
zsh-8e6c1d8b474c6fcbe3da77a9cb2b1d31d65a6ca4.tar.xz
zsh-8e6c1d8b474c6fcbe3da77a9cb2b1d31d65a6ca4.zip
42605: properly free the vi registers hash
Diffstat (limited to 'Src/Zle/complete.c')
-rw-r--r--Src/Zle/complete.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Src/Zle/complete.c b/Src/Zle/complete.c
index 313dcb92f..1dc2b01c2 100644
--- a/Src/Zle/complete.c
+++ b/Src/Zle/complete.c
@@ -1325,7 +1325,8 @@ set_compstate(UNUSED(Param pm), HashTable ht)
 
 		    break;
 		}
-    deleteparamtable(ht);
+    if (ht != pm->u.hash)
+	deleteparamtable(ht);
 }
 
 /**/