Merge pull request #29 from T2hhbmEK/wayland

add WAYLAND_DISPLAY
This commit is contained in:
依云 2021-10-26 18:25:01 +08:00 committed by GitHub
commit c689083ffb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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