From 5bafab3e106acbe0710e8f63c01d84e342b9be29 Mon Sep 17 00:00:00 2001 From: adam Date: Tue, 29 Sep 2026 18:52:55 +0000 Subject: [PATCH] don't highlight a stats bar after a loss Since progress is saved before the final reveal, save_result runs with ROW still on the last row, so losing on the sixth guess highlighted the "6" bar as if the game had been won. Only highlight after a win. Co-Authored-By: Claude Opus 5.5 --- wordle | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wordle b/wordle index 61084d5..21a6cb3 100755 --- a/wordle +++ b/wordle @@ -559,7 +559,8 @@ function render_stats() { axis=$(( i+1 )) - if [[ "${ROW}" == "${i}" ]]; then + # Highlight the bar for this game's guess count, only if it was won + if [[ $WIN == 5 && "${ROW}" == "${i}" ]]; then echo "$axis│${LETTER_GR}$bar${RESET} $value" else echo "$axis│$bar $value"