Skip to content

Commit

Permalink
fix: change window-point-insertion-type only locally.
Browse files Browse the repository at this point in the history
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
  • Loading branch information
szermatt committed Oct 1, 2024
1 parent e93901c commit df18ebd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mistty.el
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit df18ebd

Please sign in to comment.