From 6e2ef574c89fa7e0f0e3ddc8934020be722e1d59 Mon Sep 17 00:00:00 2001 From: Daniel Shahaf Date: Tue, 16 Aug 2016 13:25:43 +0000 Subject: [PATCH] noop: Restructure code for clarity. The structure now mirrors the stall construct at the top of the loop. --- highlighters/main/main-highlighter.zsh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/highlighters/main/main-highlighter.zsh b/highlighters/main/main-highlighter.zsh index 7d652eb..47e43e7 100644 --- a/highlighters/main/main-highlighter.zsh +++ b/highlighters/main/main-highlighter.zsh @@ -546,7 +546,12 @@ _zsh_highlight_main_highlighter() this_word=':start::regular:' fi start_pos=$end_pos - (( in_redirection == 0 )) && this_word=$next_word + if (( in_redirection == 0 )); then + # This is the default/common codepath. + this_word=$next_word + else + # Stall $this_word. + fi done }