Skip to content

Commit 3a7ed56

Browse files
committed
Add fuzzyy warning when Vim encoding is not utf-8
utf-8 is required for popup borders etc., without it things be weird If you run into this warning, check the value of $LANG in your shell environment, and if necessary override in vimrc, `set encoding=utf-8`
1 parent 09283e5 commit 3a7ed56

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

plugin/fuzzyy.vim

+3
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ g:loaded_fuzzyy = 1
1111

1212
# Deprecated or removed options
1313
var warnings = []
14+
if &encoding != 'utf-8'
15+
warnings += ['fuzzyy: Vim encoding is ' .. &encoding .. ', utf-8 is required for popup borders etc.']
16+
endif
1417
if exists('g:enable_fuzzyy_keymaps')
1518
warnings += ['fuzzyy: g:enable_fuzzyy_keymaps is deprecated, use g:fuzzyy_enable_mappings instead']
1619
g:fuzzyy_enable_mappings = g:enable_fuzzyy_keymaps

0 commit comments

Comments
 (0)