emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/coterm 5181afcef2: Don't narrow before saving point pos


From: ELPA Syncer
Subject: [elpa] externals/coterm 5181afcef2: Don't narrow before saving point position
Date: Tue, 1 Mar 2022 13:57:28 -0500 (EST)

branch: externals/coterm
commit 5181afcef207116a7a527e08ba0555a070b7a69f
Author: Miha Rihtaršič <miha@kamnitnik.top>
Commit: Miha Rihtaršič <miha@kamnitnik.top>

    Don't narrow before saving point position
---
 coterm.el | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/coterm.el b/coterm.el
index 271145c079..1b8d4168d6 100644
--- a/coterm.el
+++ b/coterm.el
@@ -983,11 +983,11 @@ terminal screen."
             (setq string (concat fragment string))
             (setq coterm--t-unhandled-fragment nil))
 
+          (setq restore-point (if (= (point) pmark) pmark (point-marker)))
+          (setq old-pmark (copy-marker pmark window-point-insertion-type))
+
           (save-restriction
             (coterm--narrow-to-process-output pmark)
-
-            (setq restore-point (if (= (point) pmark) pmark (point-marker)))
-            (setq old-pmark (copy-marker pmark window-point-insertion-type))
             (goto-char pmark)
             ;; (setq coterm--t-row nil)
             (setq coterm--t-col nil)
@@ -1303,8 +1303,7 @@ terminal screen."
             (set-marker pmark (point))
             (skip-chars-forward " \n")
             (when (eobp)
-              (delete-region pmark (point)))
-            (widen))
+              (delete-region pmark (point))))
 
           ;; Restore point (this restores it only for the selected window)
           (goto-char restore-point)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]