aboutsummaryrefslogtreecommitdiff
path: root/internal/icons.zsh
diff options
context:
space:
mode:
authorromkatv <roman.perepelitsa@gmail.com>2020-02-20 10:31:53 +0300
committerromkatv <roman.perepelitsa@gmail.com>2020-02-20 10:31:53 +0300
commit9ce0a0551e4e19680e622b5cf1afd17f2d47ce13 (patch)
tree6a1d4df06cd8c78f4565f9cdbb387f28f0f3522f /internal/icons.zsh
parent8a845210b59b4a4a9c581277872c1d832fc90803 (diff)
attempt to make locale workarounds more robust
Diffstat (limited to 'internal/icons.zsh')
-rw-r--r--internal/icons.zsh8
1 files changed, 4 insertions, 4 deletions
diff --git a/internal/icons.zsh b/internal/icons.zsh
index 5baf1c2d..7e919cd1 100644
--- a/internal/icons.zsh
+++ b/internal/icons.zsh
@@ -643,9 +643,9 @@ function _p9k_init_icons() {
# Sadly, this is a part of public API. Its use is emphatically discouraged.
function print_icon() {
eval "$__p9k_intro"
- if (( ! $+_p9k__locale )); then
+ if (( ! $+__p9k_locale )); then
_p9k_init_locale
- [[ -z $_p9k__locale ]] || local LC_ALL=$_p9k__locale
+ [[ -z $__p9k_locale ]] || local LC_ALL=$__p9k_locale
fi
_p9k_init_icons
local var=POWERLEVEL9K_$1
@@ -663,9 +663,9 @@ function print_icon() {
# overrides into account.
function get_icon_names() {
eval "$__p9k_intro"
- if (( ! $+_p9k__locale )); then
+ if (( ! $+__p9k_locale )); then
_p9k_init_locale
- [[ -z $_p9k__locale ]] || local LC_ALL=$_p9k__locale
+ [[ -z $__p9k_locale ]] || local LC_ALL=$__p9k_locale
fi
_p9k_init_icons
local key