add WAYLAND_DISPLAY

This commit is contained in:
T2hhbmEK 2021-10-26 17:55:02 +08:00
parent 3554b279a0
commit 84a183b46d

View file

@ -5,7 +5,7 @@ scriptencoding utf-8
" URL: https://www.vim.org/scripts/script.php?script_id=3764
" ---------------------------------------------------------------------
" Load Once:
if &cp || exists("g:loaded_fcitx") || !exists('$DISPLAY')
if &cp || exists("g:loaded_fcitx") || (!exists('$DISPLAY') && !exists('$WAYLAND_DISPLAY'))
finish
endif
let s:keepcpo = &cpo