From d683d278c793681069800417b77e8d53e7ce21f1 Mon Sep 17 00:00:00 2001 From: Mikael Magnusson Date: Wed, 23 Jan 2019 00:46:58 +0100 Subject: 44011: Only use fg_start_code for non-truecolor The sequence for truecolor uses a different prefix from palette colors --- Test/X04zlehighlight.ztst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Test') diff --git a/Test/X04zlehighlight.ztst b/Test/X04zlehighlight.ztst index e14517490..f162594c9 100644 --- a/Test/X04zlehighlight.ztst +++ b/Test/X04zlehighlight.ztst @@ -96,7 +96,7 @@ zpty_line 1 p # the line of interest, preserving escapes ("p") zpty_stop 0:basic region_highlight with true-color (hex-triplets) ->0m27m24mCDE|38;2;4;8;16|trueCDE|39| +>0m27m24m38;2;4;8;16mtrueCDE|39| zpty_start zpty_input 'zmodload zsh/nearcolor' @@ -108,7 +108,7 @@ zpty_line 1 p # the line of interest, preserving escapes ("p") zpty_stop 0:basic region_highlight with near-color (hex-triplets at input) ->0m27m24mCDE|38;5;232|trueCDE|39| +>0m27m24mCDE|3232|trueCDE|39| zpty_start zpty_input 'rh_widget() { BUFFER="true"; region_highlight+=( "0 4 fg=green" ); rh2; }' @@ -132,7 +132,7 @@ zpty_line 1 p # the line of interest, preserving escapes ("p") zpty_stop 0:overlapping region_highlight with true-color ->0m27m24mCDE|38;2;0;204;0|tCDE|38;2;204;0;0|rCDE|39|CDE|38;2;0;204;0|ueCDE|39| +>0m27m24m38;2;0;204;0mt38;2;204;0;0mrCDE|39|38;2;0;204;0mueCDE|39| zpty_start zpty_input 'zmodload zsh/nearcolor' @@ -145,7 +145,7 @@ zpty_line 1 p # the line of interest, preserving escapes ("p") zpty_stop 0:overlapping region_highlight with near-color (hex-triplets at input) ->0m27m24mCDE|38;5;40|tCDE|38;5;160|rCDE|39|CDE|38;5;40|ueCDE|39| +>0m27m24mCDE|340|tCDE|3160|rCDE|39|CDE|340|ueCDE|39| %clean -- cgit 1.4.1