diff options
author | Roman Perepelitsa <roman.perepelitsa@gmail.com> | 2023-05-04 11:40:52 +0300 |
---|---|---|
committer | Roman Perepelitsa <roman.perepelitsa@gmail.com> | 2023-05-04 11:40:52 +0300 |
commit | ce0bee979bec1b63d2d2005d96253bbe87fe2a72 (patch) | |
tree | c9fcbc62a0e81e022a46753d81adb32affd7d9fe /internal/wizard.zsh | |
parent | dff735c26173183dc44864ae5d9aa4c1d74fe150 (diff) |
wizard: check for unicode 9 support before asking about U+F0737
Diffstat (limited to 'internal/wizard.zsh')
-rw-r--r-- | internal/wizard.zsh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/internal/wizard.zsh b/internal/wizard.zsh index c18474b2..c77f8151 100644 --- a/internal/wizard.zsh +++ b/internal/wizard.zsh @@ -767,6 +767,11 @@ function ask_quotes() { } function ask_arrow() { + # This condition holds as long as zsh is compiled with unicode 9 support. + if (( ${(m)#${(g::)1}} != 1 )); then + cap_arrow=0 + return + fi [[ -n $2 ]] && add_widget 0 flowing -c "$2" add_widget 0 flowing -c %BDoes this look like an%b "%2Fupwards arrow%f%B?%b" add_widget 0 flowing -c reference: "$(href https://graphemica.com/%F0%9F%A0%89)" |