Escape commas in the keyboard preselect; gum splits --selected on them
This commit is contained in:
1 parent
c08a1bc3c2
commit
76b9331d8b
2 files changed
+3
-3
No files matched your search
@@ -151,7 +151,7 @@ omarchy_prompt_language() {
|
||||
omarchy_prompt_keyboard() {
|
||||
local choice status selected=${1:-English (US)}
|
||||
choice=$(printf '%s\n' "$OMARCHY_KEYBOARD_LAYOUTS" | cut -d'|' -f1 |
|
||||
gum choose --height 10 --selected "$selected" --header "$(omarchy_text "Select keyboard layout")") && status=0 || status=$?
|
||||
gum choose --height 10 --selected "${selected//,/\\,}" --header "$(omarchy_text "Select keyboard layout")") && status=0 || status=$?
|
||||
((status == 0)) || return $status
|
||||
|
||||
local selection
|
||||
|
||||
Reference in new issue
Block a user