Skip to content

Commit 3f909ea

Browse files
committed
fix newline check
1 parent e59cfd8 commit 3f909ea

File tree

1 file changed

+1
-1
lines changed
  • crates/chat-cli/src/cli/chat/tools/execute

1 file changed

+1
-1
lines changed

crates/chat-cli/src/cli/chat/tools/execute/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ pub struct ExecuteCommand {
4949
impl ExecuteCommand {
5050
pub fn requires_acceptance(&self, allowed_commands: Option<&Vec<String>>, allow_read_only: bool) -> bool {
5151
// Always require acceptance for multi-line commands.
52-
if self.command.contains("\n") {
52+
if self.command.contains("\n") || self.command.contains("\r") {
5353
return true;
5454
}
5555

0 commit comments

Comments
 (0)