diff options
| author | vladislav doster <10052309+vladdoster@users.noreply.github.com> | 2024-03-26 03:55:16 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-26 09:55:16 +0100 |
| commit | 1d09c6bb0a950756a65b02457842933e3aa493eb (patch) | |
| tree | d3da2149911d18975d3ca88158971e4207328950 /plugins/emoji/emoji.plugin.zsh | |
| parent | a168efe73e467c7164ef9b49dea61e9aefd27a48 (diff) | |
| download | zsh-1d09c6bb0a950756a65b02457842933e3aa493eb.tar.gz zsh-1d09c6bb0a950756a65b02457842933e3aa493eb.tar.bz2 zsh-1d09c6bb0a950756a65b02457842933e3aa493eb.zip | |
style: remove trailing whitespace (#12303)
Diffstat (limited to 'plugins/emoji/emoji.plugin.zsh')
| -rw-r--r-- | plugins/emoji/emoji.plugin.zsh | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/plugins/emoji/emoji.plugin.zsh b/plugins/emoji/emoji.plugin.zsh index f9e476ebf..f7be56cf7 100644 --- a/plugins/emoji/emoji.plugin.zsh +++ b/plugins/emoji/emoji.plugin.zsh @@ -24,7 +24,7 @@ unset _omz_emoji_plugin_dir # This is a combining character that can be placed after any other character to surround # it in a "keycap" symbol. -# The digits 0-9 are already in the emoji table as keycap_digit_<N>, keycap_ten, etc. +# The digits 0-9 are already in the emoji table as keycap_digit_<N>, keycap_ten, etc. # It's unclear whether this should be in the $emoji array, because those characters are all ones # which can be displayed on their own. @@ -63,9 +63,9 @@ function random_emoji() { [[ $list_size -eq 0 ]] && return 1 local random_index=$(( ( RANDOM % $list_size ) + 1 )) local name=${names[$random_index]} - if [[ "$group" == "flags" ]]; then + if [[ "$group" == "flags" ]]; then echo ${emoji_flags[$name]} - else + else echo ${emoji[$name]} fi } @@ -86,22 +86,22 @@ function display_emoji() { # terminals treat these emoji chars as single-width. local counter=1 for i in $names; do - if [[ "$group" == "flags" ]]; then + if [[ "$group" == "flags" ]]; then printf '%s ' "$emoji_flags[$i]" - else - printf '%s ' "$emoji[$i]" + else + printf '%s ' "$emoji[$i]" fi # New line every 20 emoji, to avoid weirdnesses if (($counter % 20 == 0)); then - printf "\n" + printf "\n" fi let counter=$counter+1 done print for i in $names; do - if [[ "$group" == "flags" ]]; then + if [[ "$group" == "flags" ]]; then echo "${emoji_flags[$i]} = $i" - else + else echo "${emoji[$i]} = $i" fi done |
