fmt; smoke test expects edits option on write prompt

This commit is contained in:
hermes committed 2026-10-06 12:50:02 +00:00
1 parent 5eee541e62
commit b4e9f4da73
2 files changed
+6 -2

No files matched your search

+5 -1
View File
@@ -1034,7 +1034,11 @@ async fn submit(app: &mut App, mut line: String, c: &Ctx<'_>) {
.lock() .lock()
.unwrap_or_else(|e| e.into_inner()) .unwrap_or_else(|e| e.into_inner())
.toggle_yolo(); .toggle_yolo();
let m = if on { "yolo on: nothing asks" } else { "yolo off" }; let m = if on {
"yolo on: nothing asks"
} else {
"yolo off"
};
app.t.push(Item::Info(m.into())); app.t.push(Item::Info(m.into()));
} }
"lsp" => { "lsp" => {
+1 -1
View File
@@ -67,7 +67,7 @@ check("tab completion", "es.md")
send(b"\x15") # ctrl-u send(b"\x15") # ctrl-u
send(b"make hello.txt"); send(b"\r", 2) send(b"make hello.txt"); send(b"\r", 2)
check("permission prompt", "permission") check("permission prompt", "permission")
check("allow always rule", "allow always: write") check("allow all edits option", "allow all edits this session")
send(b"y", 2) send(b"y", 2)
check("second prompt for bash", "allow always: sort *") check("second prompt for bash", "allow always: sort *")
send(b"y", 3) send(b"y", 3)