From 2e0506f2b52220328636b17bb8d72f648c04c8e5 Mon Sep 17 00:00:00 2001 From: T2hhbmEK Date: Tue, 26 Oct 2021 17:55:02 +0800 Subject: [PATCH] add WAYLAND_DISPLAY --- plugin/fcitx.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/fcitx.vim b/plugin/fcitx.vim index d1eab03..b5b34e8 100644 --- a/plugin/fcitx.vim +++ b/plugin/fcitx.vim @@ -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') || !has('python3') +if &cp || exists("g:loaded_fcitx") || (!exists('$DISPLAY') && !exists('$WAYLAND_DISPLAY')) || !has('python3') finish endif let s:keepcpo = &cpo