From 2c5ea79f1762dcbafca8d08bc5bdb47d75670f03 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Thu, 3 Apr 2008 11:38:55 +0000 Subject: 24782: initial go at highlighting of characters in zle command lines --- Src/Zle/zle_utils.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'Src/Zle/zle_utils.c') diff --git a/Src/Zle/zle_utils.c b/Src/Zle/zle_utils.c index d702be845..1027f2083 100644 --- a/Src/Zle/zle_utils.c +++ b/Src/Zle/zle_utils.c @@ -384,6 +384,7 @@ spaceinline(int ct) if (mark > zlecs) mark += ct; } + region_active = 0; } /**/ @@ -408,6 +409,7 @@ shiftchars(int to, int cnt) } zleline[zlell = to] = ZWC('\0'); } + region_active = 0; } /**/ @@ -724,8 +726,12 @@ getzlequery(void) else c = ZC_tolower(c); /* echo response and return */ - if (c != ZWC('\n')) - zwcputc(c); + if (c != ZWC('\n')) { + REFRESH_ELEMENT re; + re.chr = c; + re.atr = 0; + zwcputc(&re, NULL); + } return c == ZWC('y'); } @@ -903,6 +909,7 @@ int handlefeep(UNUSED(char **args)) { zbeep(); + region_active = 0; return 0; } -- cgit 1.4.1