Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When switching IME, characters dangled #2358

Closed
zk4 opened this issue Feb 12, 2020 · 6 comments
Closed

When switching IME, characters dangled #2358

zk4 opened this issue Feb 12, 2020 · 6 comments

Comments

@zk4
Copy link

zk4 commented Feb 12, 2020

kitty version: 0.16
system version: mac 10.12.6 (16G1710)

when switching IME from Chinese to English with <command +space> key pressed , characters dangled.
In Kitty 0.16
2020-02-12 10 48 58

I test it on iTerm2 and Mac Terminal , they both do fine. When switching the IME, they will clear the dangled characters in the screen.
In iTerm2
2020-02-12 10 54 34

The characters seem to be left on the screen buffer. When switching IME, that little character-dangled aera does not redraw. If I type some characters to overwrite the area of dangled characters. It will be overwrited.

@kovidgoyal
Copy link
Owner

most likely glfw/coca_window.m will need to be modified to intercept this event and clear any pending IME.

@zk4
Copy link
Author

zk4 commented Feb 13, 2020

@kovidgoyal Is there any plan to fix this in latest version?

@zk4
Copy link
Author

zk4 commented Feb 17, 2020

@kovidgoyal
Thanks for your fix! That's quick ! I tried 56e5c8b , But problem still exist , 😅 just become a little smaller .

When typing in NVIM v0.5.0-370-g5d5b068d5 in latest kitty, some characters still dangled.
Those dangled chars is produced by vim extension coc-imselect with coc.vim.

2020-02-17 21 33 09

and I tested it in iterm2. iterm2 seems ok.
2020-02-17 21 37 50

@kovidgoyal
Copy link
Owner

kovidgoyal commented Feb 17, 2020

Well I cant replicate the issue, so someone that can is going to have to
improve the patch.

@kovidgoyal
Copy link
Owner

Or simply press the key to cacnel the IME before switching.

@zk4
Copy link
Author

zk4 commented Feb 18, 2020

Solved. In case someone encounter the same problem. Here is the solution.

In vim, :Cocconfig
"imselect.enableFloating": false

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants