Escape commas in the keyboard preselect; gum splits --selected on them

This commit is contained in:
ZacharyZhang-NY committed 2026-10-09 00:52:26 -04:00
1 parent c08a1bc3c2
commit 76b9331d8b
2 files changed
+3 -3

No files matched your search

+2 -2
View File
@@ -170,8 +170,8 @@ grep -qF -- '--selected English (US)' "$GUM_ARGS" || fail "keyboard prompt prese
pass "keyboard prompt maps the chosen label to its keymap"
PROMPT_ARG="Chinese (Simplified, Pinyin)" run_prompt omarchy_prompt_keyboard "0:Chinese (Simplified, Pinyin)"
grep -qF -- '--selected Chinese (Simplified, Pinyin)' "$GUM_ARGS" && [[ $(field keyboard_input_method) == "pinyin" ]] ||
fail "keyboard prompt preselects the layout its caller names"
grep -qF -- '--selected Chinese (Simplified\, Pinyin)' "$GUM_ARGS" && [[ $(field keyboard_input_method) == "pinyin" ]] ||
fail "keyboard prompt preselects the layout its caller names, escaping the comma gum splits --selected on"
pass "keyboard prompt preselects the layout its caller names"
for selection in 'Japanese|jp106|mozc|' 'Japanese (US keyboard)|us|mozc|' 'Korean|us|hangul|kr' 'Chinese (Simplified, Pinyin)|us|pinyin|' 'Chinese (Traditional, Zhuyin)|us|chewing|'; do