Fix types and wording

This commit is contained in:
oxalica 2021-08-20 16:06:01 +08:00
parent bcdbcec7b1
commit bd6fc8c091
No known key found for this signature in database
GPG key ID: CED392DE0C483D00
2 changed files with 4 additions and 4 deletions

View file

@ -14,8 +14,8 @@ set cpo&vim
" If g:fcitx5_remote is set (to the path to `fcitx5-remove`), use it to toggle IME state.
if exists("g:fcitx5_remote")
function Fcitx2en()
let inputstatus = system(g:fcitx5_remote)
if inputstatus == 2
let inputstatus = trim(system(g:fcitx5_remote))
if inputstatus == '2'
let b:inputtoggle = 1
call system(g:fcitx5_remote . ' -c')
endif