about summary refs log tree commit diff
path: root/Src/Zle/zle_move.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_move.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_move.c')
-rw-r--r--Src/Zle/zle_move.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/Src/Zle/zle_move.c b/Src/Zle/zle_move.c
index 9b91f8885..7f2748da6 100644
--- a/Src/Zle/zle_move.c
+++ b/Src/Zle/zle_move.c
@@ -183,7 +183,12 @@ backwardchar(UNUSED(char **args))
 int
 setmarkcommand(UNUSED(char **args))
 {
+    if (zmult < 0) {
+	region_active = 0;
+	return 0;
+    }
     mark = zlecs;
+    region_active = 1;
     return 0;
 }
 
@@ -193,11 +198,17 @@ exchangepointandmark(UNUSED(char **args))
 {
     int x;
 
+    if (zmult == 0) {
+	region_active = 1;
+	return 0;
+    }
     x = mark;
     mark = zlecs;
     zlecs = x;
     if (zlecs > zlell)
 	zlecs = zlell;
+    if (zmult > 0)
+	region_active = 1;
     return 0;
 }