mirror of
https://github.com/lilydjwg/fcitx.vim.git
synced 2026-01-08 11:57:28 +08:00
enable on macOS non-ssh
This commit is contained in:
parent
28d5bcc86d
commit
ad4cad5944
1 changed files with 2 additions and 2 deletions
|
|
@ -5,7 +5,7 @@ scriptencoding utf-8
|
||||||
" URL: https://www.vim.org/scripts/script.php?script_id=3764
|
" URL: https://www.vim.org/scripts/script.php?script_id=3764
|
||||||
" ---------------------------------------------------------------------
|
" ---------------------------------------------------------------------
|
||||||
" Load Once:
|
" Load Once:
|
||||||
if &cp || exists("g:loaded_fcitx") || (!exists('$DISPLAY') && !exists('$WAYLAND_DISPLAY'))
|
if &cp || exists("g:loaded_fcitx") || (!exists('$DISPLAY') && !exists('$WAYLAND_DISPLAY') && !(has('mac') && !exists('$SSH_TTY')))
|
||||||
finish
|
finish
|
||||||
endif
|
endif
|
||||||
let s:keepcpo = &cpo
|
let s:keepcpo = &cpo
|
||||||
|
|
@ -33,7 +33,7 @@ function s:setup_cmd()
|
||||||
let g:loaded_fcitx = 1
|
let g:loaded_fcitx = 1
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
" If g:fcitx5_remote is set (to the path to `fcitx5-remove`), use it to toggle IME state.
|
" If g:fcitx5_remote is set (to the path to `fcitx5-remote`), use it to toggle IME state.
|
||||||
if exists("g:fcitx5_remote")
|
if exists("g:fcitx5_remote")
|
||||||
call s:setup_cmd()
|
call s:setup_cmd()
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue