From f3caac45069ccbb260a605d557cce9c10d0b719f Mon Sep 17 00:00:00 2001 From: Sebastian Gniazdowski Date: Mon, 30 Dec 2019 03:33:22 +0100 Subject: [PATCH] -which.ch: Support here-string --- :chroma/-which.ch | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/:chroma/-which.ch b/:chroma/-which.ch index 75a8de4..5a5d7b3 100644 --- a/:chroma/-which.ch +++ b/:chroma/-which.ch @@ -40,6 +40,10 @@ local -a __results # "starts new command", if so pass-through – chroma ends [[ "$__arg_type" = 3 ]] && return 2 + if (( in_redirection > 0 || this_word & 128 )) || [[ $__wrd == "<<<" ]]; then + return 1 + fi + if [[ "$__wrd" = -* ]]; then # Detected option, add style for it. [[ "$__wrd" = --* ]] && __style=${FAST_THEME_NAME}double-hyphen-option || \