]> git.eshelyaron.com Git - emacs.git/commit
Prevent pre-edit overlay text from being displayed after a command
authorPo Lu <luangruo@yahoo.com>
Sat, 15 Jan 2022 10:18:34 +0000 (18:18 +0800)
committerPo Lu <luangruo@yahoo.com>
Sat, 15 Jan 2022 10:20:15 +0000 (18:20 +0800)
commit7a679953e22ada9df02b181b872b9e56bbfd0f07
tree58af1eb495e2f3dbdb2a6376644e279dc61adef5
parent3b27edd5f5fe4f9f45f1dd54ec24dcc6181ddca9
Prevent pre-edit overlay text from being displayed after a command

This works around buggy input methods causing the overlay to be
displayed alongside newly inserted text for a brief period.

* lisp/term/x-win.el (x-clear-preedit-text): New function.
(x-preedit-text): Add said function to pre-command-hook.  It
will remove itself when triggered.
lisp/term/x-win.el