Skip to content

Commit 4f0e418

Browse files
Jimbartschaefer
authored andcommitted
53783: use case-insensitive search for more variants of language files
1 parent 7bf0500 commit 4f0e418

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

ChangeLog

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
2025-10-31 Bart Schaefer <[email protected]>
2+
3+
* Jim Murphy: 53783: Functions/Prompts/prompt_adam2_setup,
4+
Functions/Prompts/prompt_special_chars: use case-insensitive
5+
search for more variants of language files
6+
17
2025-10-31 Oliver Kiddle <[email protected]>
28

39
* LangLangbart: github #149: Completion/Darwin/Command/_say:

Functions/Prompts/prompt_adam1_setup

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ prompt_adam1_precmd () {
4141
local prompt_length space_left
4242

4343
base_prompt_expanded_no_color=$(print -P "$base_prompt_no_color")
44-
base_prompt_etc=$(print -P "$base_prompt%($((${prompt_path_ellipsize_num} + 1))~|...|)%${prompt_path_ellipsize_num}~")
44+
base_prompt_etc=$(print -P "$base_prompt_no_color%($((${prompt_path_ellipsize_num} + 1))~|...|)%${prompt_path_ellipsize_num}~")
4545
prompt_length=${#base_prompt_etc}
4646
if [[ $prompt_length -lt $prompt_wrap_length ]]; then
4747
path_prompt="%B%F{$prompt_adam1_color2}%($((${prompt_path_ellipsize_num} + 1))~|...|)%${prompt_path_ellipsize_num}~%F{white}"

Functions/Prompts/prompt_adam2_setup

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ prompt_adam2_setup () {
2525

2626
if [[ $1 == '8bit' ]]; then
2727
shift
28-
if [[ ${LC_ALL:-${LC_CTYPE:-$LANG}} = *UTF-8* ]]; then
28+
if [[ ${${LC_ALL:-${LC_CTYPE:-$LANG}}:u} = *(UTF-8|UTF8)* ]]; then
2929
prompt_gfx_tlc=$'\xe2\x94\x8c'
3030
prompt_gfx_mlc=$'\xe2\x94\x9c'
3131
prompt_gfx_blc=$'\xe2\x94\x94'

Functions/Prompts/prompt_special_chars

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
typeset -gA schars
1010

11-
if [[ ${LC_ALL:-${LC_CTYPE:-$LANG}} = *(UTF-8|utf8)* ]]; then
11+
if [[ ${${LC_ALL:-${LC_CTYPE:-$LANG}}:u} = *(UTF-8|UTF8)* ]]; then
1212
schars[300]=$'\xe2\x94\x94'
1313
schars[304]=$'\xe2\x94\x8c'
1414
schars[332]=$'\xe2\x94\x8c'

0 commit comments

Comments
 (0)