about summary refs log tree commit diff
path: root/Src/Zle/zle_utils.c
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2008-04-03 11:38:55 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2008-04-03 11:38:55 +0000
commit2c5ea79f1762dcbafca8d08bc5bdb47d75670f03 (patch)
tree281e1696494e62aab0602d0186669520f7ecec7b /Src/Zle/zle_utils.c
parentb44ed0b03250e17a21194ca63602ff8dd5191583 (diff)
downloadzsh-2c5ea79f1762dcbafca8d08bc5bdb47d75670f03.tar.gz
zsh-2c5ea79f1762dcbafca8d08bc5bdb47d75670f03.tar.xz
zsh-2c5ea79f1762dcbafca8d08bc5bdb47d75670f03.zip
24782: initial go at highlighting of characters in zle command lines
Diffstat (limited to 'Src/Zle/zle_utils.c')
-rw-r--r--Src/Zle/zle_utils.c11
1 files changed, 9 insertions, 2 deletions
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;
 }