From df18ebd3aaebae61cf4de767d75a7bc60be585b8 Mon Sep 17 00:00:00 2001 From: Stephane Zermatten Date: Tue, 1 Oct 2024 10:44:32 +0300 Subject: [PATCH] fix: change window-point-insertion-type only locally. Before this change Mistty would change window-point-insertion-type globally, causing strange behavior in unrelated systems. This change switches to setq-local instead of setq. Fixes #22 --- mistty.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mistty.el b/mistty.el index f2542d6..1c953d6 100644 --- a/mistty.el +++ b/mistty.el @@ -697,7 +697,7 @@ is echoed back, call `mistty-interactive-insert-hook'.") ;; the end of the window. This seems to be more in-line with what ;; commands such as more expect than the default Emacs behavior. (setq-local scroll-conservatively 1024) - (setq window-point-insertion-type t) + (setq-local window-point-insertion-type t) (add-hook 'pre-redisplay-functions #'mistty--cursor-skip nil t) (add-hook 'completion-in-region-mode-hook #'mistty--detect-completion-in-region nil t)