[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/eat dfa7e02557 3/3: Fix typo in 'eat--t-scroll-up'
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/eat dfa7e02557 3/3: Fix typo in 'eat--t-scroll-up' |
Date: |
Sat, 17 Dec 2022 05:58:38 -0500 (EST) |
branch: elpa/eat
commit dfa7e025578c1284d2ace7dffa8153c1fd0c9051
Author: Akib Azmain Turja <akib@disroot.org>
Commit: Akib Azmain Turja <akib@disroot.org>
Fix typo in 'eat--t-scroll-up'
* eat.el (eat--t-scroll-up): Replace 'scroll-begin' with
'scroll-end' in '(< scroll-end (eat--t-disp-width disp))',
since this will always evaluate to t, and thus it was most
probably a typo.
---
eat.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/eat.el b/eat.el
index 6a23ee720f..f8601dbabb 100644
--- a/eat.el
+++ b/eat.el
@@ -1100,7 +1100,8 @@ accordingly."
(insert ?\n))
(set-marker (eat--t-disp-begin disp) (point)))
;; Is the last line on display in scroll region?
- (when (< scroll-begin (eat--t-disp-width disp))
+ (when (< scroll-end (eat--t-disp-width disp))
+ ;; No, it isn't.
;; Go to the end of scroll region (before deleting or moving
;; texts).
(eat--t-goto-bol (- (1+ (- scroll-end scroll-begin)) n))