From 4af9d9731744b496059acd32cbc98ecf2c896ea6 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Thu, 30 Aug 2007 14:38:26 +0000 Subject: 23807: fix interactive completion mode --- Src/Zle/complist.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'Src/Zle/complist.c') diff --git a/Src/Zle/complist.c b/Src/Zle/complist.c index 64d7e50ce..0e83cb2a2 100644 --- a/Src/Zle/complist.c +++ b/Src/Zle/complist.c @@ -2542,10 +2542,20 @@ domenuselect(Hookdef dummy, Chdata dat) strncpy(zlemetaline, origline, l); zlemetacs = origcs; + /* + * Horrible quick fix: + * we shouldn't need to metafy and unmetafy + * quite as much. If we kept unmetafied through + * here we could fix up setmstatus to use unmetafied + * as well. This is the only use of setmstatus which + * restores the line so that should be doable. + */ + unmetafy_line(); if (cmd == Th(z_selfinsert)) selfinsert(zlenoargs); else selfinsertunmeta(zlenoargs); + metafy_line(); saveline = (char *) zhalloc(zlemetall); memcpy(saveline, zlemetaline, zlemetall); -- cgit 1.4.1