We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a28e006 commit 7860f67Copy full SHA for 7860f67
crates/chat-cli/src/cli/chat/prompt.rs
@@ -353,6 +353,15 @@ impl ChatHinter {
353
return None;
354
}
355
356
+ // Check for unclosed triple backticks
357
+ if line.contains("```") {
358
+ let triple_backtick_count = line.matches("```").count();
359
+ if triple_backtick_count % 2 == 1 {
360
+ // We have an odd number of ```, meaning we're in multiline mode
361
+ return Some("in multiline mode, waiting for closing backticks ```".to_string());
362
+ }
363
364
+
365
// If line starts with a slash, try to find a command hint
366
if line.starts_with('/') {
367
return self
0 commit comments