From c7afc406b652a168615aa12a3aa661c022dc6c94 Mon Sep 17 00:00:00 2001 From: Inkyu Oh Date: Thu, 4 Jun 2026 18:08:59 +0900 Subject: [PATCH] =?UTF-8?q?fix(updater):=20accept=20Korean=20IME=20'?= =?UTF-8?q?=E3=85=9B'=20as=20yes=20in=20update=20prompt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On the Korean Dubeolsik keyboard layout, the Y key position produces ㅛ (U+315B) when a Korean IME is active. Since the update confirmation prompt only matched [yY$'\n'], Korean users who pressed the Y key with the IME on had their update silently cancelled. Accept ㅛ as an affirmative answer. --- tools/check_for_upgrade.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/check_for_upgrade.sh b/tools/check_for_upgrade.sh index 44dbb7b31..f8f1f5992 100644 --- a/tools/check_for_upgrade.sh +++ b/tools/check_for_upgrade.sh @@ -232,11 +232,14 @@ function handle_update() { # Ask for confirmation and only update on 'y', 'Y' or Enter # Otherwise just show a reminder for how to update + # ㅛ (U+315B) is the character produced at the Y key position on the Korean + # Dubeolsik layout, so it is accepted too to avoid cancelling the update + # when a Korean IME is active. printf "[oh-my-zsh] Would you like to update? [Y/n] " read -r -k 1 option [[ "$option" = $'\n' ]] || echo case "$option" in - [yY$'\n']) update_ohmyzsh ;; + [yY$'\n']|$'ㅛ') update_ohmyzsh ;; [nN]) update_last_updated_file ;& *) echo "[oh-my-zsh] You can update manually by running \`omz update\`" ;; esac