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

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

[elpa] externals/coterm e22fe83 17/80: Adjust column after resizing wind


From: ELPA Syncer
Subject: [elpa] externals/coterm e22fe83 17/80: Adjust column after resizing window
Date: Wed, 13 Oct 2021 18:57:27 -0400 (EDT)

branch: externals/coterm
commit e22fe831455307e6bb309d9ce426ce7ddc29d27a
Author: m <>
Commit: m <>

    Adjust column after resizing window
---
 coterm.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/coterm.el b/coterm.el
index a2f20c0..ffba8b0 100644
--- a/coterm.el
+++ b/coterm.el
@@ -47,7 +47,8 @@ In sync with variables `coterm--t-home-marker',
 
 (defun coterm--t-reset-size (height width)
   (setq coterm--t-height height)
-  (setq coterm--t-width width))
+  (setq coterm--t-width width)
+  (setq coterm--t-col (max coterm--t-col (1- coterm--t-width))))
 
 (defun coterm--t-point (row col)
   "Return position that approximates ROW and COL."



reply via email to

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