branch: externals/coterm
commit 064761580e976c7cf5a288a879ff3fa5d8fd2e69
Author: m <>
Commit: m <>

    Plug marker leak
---
 coterm.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/coterm.el b/coterm.el
index 87f10cd..42919bd 100644
--- a/coterm.el
+++ b/coterm.el
@@ -381,7 +381,9 @@ initialize it sensibly."
               ;; be used to handle next output.
               (ignore)))
 
-          (goto-char restore-point))))))
+          (goto-char restore-point)
+          (unless (eq restore-point pmark)
+            (set-marker restore-point nil)))))))
 
 ;;; Mode functions and configuration
 

Reply via email to