From: Po Lu Date: Sun, 9 Jan 2022 09:50:51 +0000 (+0800) Subject: * lisp/term/x-win.el (x-preedit-text): Make edit overlay window local. X-Git-Tag: emacs-29.0.90~3182 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=a2868656ab5b2e7538e55013d6bbbfc4c9a3f8af;p=emacs.git * lisp/term/x-win.el (x-preedit-text): Make edit overlay window local. --- diff --git a/lisp/term/x-win.el b/lisp/term/x-win.el index 6b5e3964191..13b48f4611c 100644 --- a/lisp/term/x-win.el +++ b/lisp/term/x-win.el @@ -1530,6 +1530,7 @@ EVENT is a preedit-text event." (setq x-preedit-overlay nil)) (when (nth 1 event) (setq x-preedit-overlay (make-overlay (point) (point))) + (overlay-put x-preedit-overlay 'window (selected-window)) (overlay-put x-preedit-overlay 'before-string (propertize (nth 1 event) 'face '(:underline t)))))