From 84a183b46dabf639cf40c7684fe4b11ceb6a3437 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 9b4d47c..992217d 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') +if &cp || exists("g:loaded_fcitx") || (!exists('$DISPLAY') && !exists('$WAYLAND_DISPLAY')) finish endif let s:keepcpo = &cpo