[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/coterm ba651c6 15/80: Fix negative and too high column
From: |
ELPA Syncer |
Subject: |
[elpa] externals/coterm ba651c6 15/80: Fix negative and too high column positions |
Date: |
Wed, 13 Oct 2021 18:57:27 -0400 (EDT) |
branch: externals/coterm
commit ba651c6264994b19255465099148f60ba3868fb7
Author: m <>
Commit: m <>
Fix negative and too high column positions
---
coterm.el | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/coterm.el b/coterm.el
index 7ce92c4..731b0fd 100644
--- a/coterm.el
+++ b/coterm.el
@@ -296,6 +296,7 @@ initialize it sensibly."
(dirty))
(?\b (ins) ;; (terminfo: cub1)
(cl-decf coterm--t-col 1)
+ (setq coterm--t-col (max coterm--t-col 0))
(dirty))
(?\C-g (ins) ;; (terminfo: bel)
(beep t))
@@ -316,9 +317,9 @@ initialize it sensibly."
(list ansi-color-context-region)))))
(?8 (ins) ;; Restore cursor (terminfo: rc)
(when-let ((cursor coterm--t-saved-cursor))
- (setq coterm--t-row (car cursor))
+ (setq coterm--t-row (max (car cursor) (1-
coterm-t-height)))
(setq cursor (cdr cursor))
- (setq coterm--t-col (car cursor))
+ (setq coterm--t-col (max (car cursor) (1-
coterm-t-width)))
(setq cursor (cdr cursor))
(when (car cursor)
(setq ansi-color-context-region (caar cursor)))))
@@ -406,6 +407,8 @@ initialize it sensibly."
coterm--t-row coterm--t-col
0 width)
(cl-incf coterm--t-col width)
+ (setq coterm--t-col (min coterm--t-col
+ (1- coterm-t-width)))
(dirty)))
(?h ;; \E[?h - DEC Private Mode Set
(pcase (car ctl-params)
- [elpa] externals/coterm cfc9f03 13/80: Fix some escape params defaulting to 1, (continued)
- [elpa] externals/coterm cfc9f03 13/80: Fix some escape params defaulting to 1, ELPA Syncer, 2021/10/13
- [elpa] externals/coterm cf9217d 09/80: Support \e[P and \e[@, ELPA Syncer, 2021/10/13
- [elpa] externals/coterm e22fe83 17/80: Adjust column after resizing window, ELPA Syncer, 2021/10/13
- [elpa] externals/coterm 586ce4e 20/80: Delete off-screen rows when scrolling up, ELPA Syncer, 2021/10/13
- [elpa] externals/coterm 7b1e001 01/80: Initial commit, ELPA Syncer, 2021/10/13
- [elpa] externals/coterm a983b5e 02/80: New function for approximately moving pmark, ELPA Syncer, 2021/10/13
- [elpa] externals/coterm 0647615 04/80: Plug marker leak, ELPA Syncer, 2021/10/13
- [elpa] externals/coterm 044b03e 06/80: Simplify, ELPA Syncer, 2021/10/13
- [elpa] externals/coterm c48515c 11/80: Support \e[4h and \e[4l for insert mode, ELPA Syncer, 2021/10/13
- [elpa] externals/coterm ab1dcd4 14/80: Fix typo, ELPA Syncer, 2021/10/13
- [elpa] externals/coterm ba651c6 15/80: Fix negative and too high column positions,
ELPA Syncer <=
- [elpa] externals/coterm 2403460 16/80: Make all coterm-t-* variables private, ELPA Syncer, 2021/10/13
- [elpa] externals/coterm 753fba8 21/80: Refactor line deletion and insertion, ELPA Syncer, 2021/10/13
- [elpa] externals/coterm 9d532fb 22/80: Refactor some more, ELPA Syncer, 2021/10/13
- [elpa] externals/coterm e21bb54 18/80: Major refactor and started scroll region, ELPA Syncer, 2021/10/13
- [elpa] externals/coterm 4a23ae2 23/80: Further refactor some more, ELPA Syncer, 2021/10/13
- [elpa] externals/coterm 08cf379 19/80: Minor fixes, ELPA Syncer, 2021/10/13
- [elpa] externals/coterm 9e7720b 37/80: Use save-excursion more sparingly, ELPA Syncer, 2021/10/13
- [elpa] externals/coterm 4943e16 41/80: Footer and header, ELPA Syncer, 2021/10/13
- [elpa] externals/coterm d6912da 42/80: Support sequences \eE[E, F and G (pacman uses them), ELPA Syncer, 2021/10/13
- [elpa] externals/coterm 71d2dc1 30/80: Implement user-facing variables and minor mode, ELPA Syncer, 2021/10/13