From 5cf6ae00564dd01a0c3c9e82b2ea504d609882e7 Mon Sep 17 00:00:00 2001 From: Daniel Shahaf Date: Thu, 14 Jan 2016 00:04:11 +0000 Subject: 37590: Invoke zle-line-pre-redraw during isearch. --- Src/Zle/zle_hist.c | 2 ++ Src/Zle/zle_main.c | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'Src') diff --git a/Src/Zle/zle_hist.c b/Src/Zle/zle_hist.c index 95d96c95c..abd6e1749 100644 --- a/Src/Zle/zle_hist.c +++ b/Src/Zle/zle_hist.c @@ -1480,6 +1480,7 @@ doisearch(char **args, int dir, int pattern) isearch_active = 0; ref: zlecallhook("zle-isearch-update", NULL); + redrawhook(); zrefresh(); if (!(cmd = getkeycmd()) || cmd == Th(z_sendbreak)) { int i; @@ -1694,6 +1695,7 @@ doisearch(char **args, int dir, int pattern) statusline = NULL; unmetafy_line(); zlecallhook("zle-isearch-exit", NULL); + redrawhook(); if (exitfn) exitfn(zlenoargs); selectkeymap(okeymap, 1); diff --git a/Src/Zle/zle_main.c b/Src/Zle/zle_main.c index 7862d48fb..6e2bfded8 100644 --- a/Src/Zle/zle_main.c +++ b/Src/Zle/zle_main.c @@ -1025,7 +1025,8 @@ getrestchar(int inchar, char *outstr, int *outcount) /**/ #endif -static void redrawhook() +/**/ +void redrawhook(void) { Thingy initthingy; if ((initthingy = rthingy_nocreate("zle-line-pre-redraw"))) { -- cgit 1.4.1