From a2868656ab5b2e7538e55013d6bbbfc4c9a3f8af Mon Sep 17 00:00:00 2001 From: Po Lu Date: Sun, 9 Jan 2022 17:50:51 +0800 Subject: [PATCH] * lisp/term/x-win.el (x-preedit-text): Make edit overlay window local. --- lisp/term/x-win.el | 1 + 1 file changed, 1 insertion(+) 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))))) -- 2.39.5