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_move.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'Src/Zle/zle_move.c') 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; } -- cgit 1.4.1