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."