diff --git a/cli/src/reedline.rs b/cli/src/reedline.rs index dce86272..e21ae1cb 100644 --- a/cli/src/reedline.rs +++ b/cli/src/reedline.rs @@ -147,6 +147,11 @@ impl CodeHighliter { return false; } + // Minimum code length + if parts.len() < 3 { + return false; + } + // Check all words for validity parts.iter().skip(1).all(|&word| { WORDLIST