[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/coterm 29ef3ad 07/80: Fix scrolling
From: |
ELPA Syncer |
Subject: |
[elpa] externals/coterm 29ef3ad 07/80: Fix scrolling |
Date: |
Wed, 13 Oct 2021 18:57:25 -0400 (EDT) |
branch: externals/coterm
commit 29ef3adf0040c5a0a2e1f447a8f3816713a31910
Author: m <>
Commit: m <>
Fix scrolling
---
coterm.el | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/coterm.el b/coterm.el
index d27d8f9..96d045b 100644
--- a/coterm.el
+++ b/coterm.el
@@ -106,22 +106,23 @@ In sync with variables `coterm--t-home-marker',
(row coterm--t-row)
(home coterm--t-home-marker))
(cond
- ((> row height)
+ ((>= row height)
(save-excursion
(goto-char home)
(let ((left-to-move (forward-line (+ coterm--t-home-offset
- (- row height 1)))))
+ (- row height -1)))))
(unless (bolp)
(cl-incf left-to-move)
(forward-line 0))
(set-marker home (point))
- (cl-incf coterm--t-home-offset left-to-move)
- (setq coterm--t-row height))))
+ (setq coterm--t-home-offset left-to-move)
+ (setq coterm--t-row (1- height)))))
((< row 0)
(save-excursion
(goto-char home)
(forward-line row)
(set-marker home (point))
+ (cl-incf coterm--t-home-offset 0)
(setq coterm--t-row 0))))))
(defun coterm-t-down (n)
- [elpa] branch externals/coterm created (now da8019b), ELPA Syncer, 2021/10/13
- [elpa] externals/coterm ff83d09 03/80: Handle \e[1K, ELPA Syncer, 2021/10/13
- [elpa] externals/coterm 9e3e19b 05/80: Add support for \e[L, ELPA Syncer, 2021/10/13
- [elpa] externals/coterm aa4a7f9 08/80: Support \e[M, ELPA Syncer, 2021/10/13
- [elpa] externals/coterm 29ef3ad 07/80: Fix scrolling,
ELPA Syncer <=
- [elpa] externals/coterm ba74fb8 10/80: Simplify, ELPA Syncer, 2021/10/13
- [elpa] externals/coterm f1cc63e 12/80: Support \e[6n for reporting cursor position, ELPA Syncer, 2021/10/13
- [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