[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/topspace 9d6f0ef459 099/181: Fix terminal bug and minor
From: |
ELPA Syncer |
Subject: |
[elpa] externals/topspace 9d6f0ef459 099/181: Fix terminal bug and minor mouse scrolling bug |
Date: |
Tue, 23 Aug 2022 12:58:38 -0400 (EDT) |
branch: externals/topspace
commit 9d6f0ef4598c64557d3f859aa322467ea4127a8b
Author: Trevor Pogue <poguete@mcmaster.ca>
Commit: Trevor Pogue <poguete@mcmaster.ca>
Fix terminal bug and minor mouse scrolling bug
- Fix issue from PR #10 that broke ability to scroll down when in terminal:
Resolved by making the line height calculations on integers instead of
floating-point when in terminal.
- Fix minor issue from PR #10 caused when scrolling with mouse:
When mouse scrolled the buffer all the way down it made the top space
unexpectedly jump. This was resolved by lowering topspace command hook
priorities such that the hooks are run sooner in the list.
---
topspace.el | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/topspace.el b/topspace.el
index 0c826402e2..bee193ba24 100644
--- a/topspace.el
+++ b/topspace.el
@@ -360,7 +360,9 @@ or if the selected window is in a child-frame."
(defun topspace--window-height ()
"Return the number of screen lines in the selected window rounded up."
- (float (floor (window-screen-lines))))
+ (if (display-graphic-p)
+ (float (floor (window-screen-lines)))
+ (floor (window-screen-lines))))
(defun topspace--count-pixel-height (start end)
"Return total pixels between points START and END as if they're both
visible."
@@ -529,7 +531,7 @@ ARG defaults to 1."
(defun topspace--add-hooks ()
"Add hooks defined in `topspace--hook-alist'."
(dolist (hook-func-pair topspace--hook-alist)
- (add-hook (car hook-func-pair) (cdr hook-func-pair) 0 t)))
+ (add-hook (car hook-func-pair) (cdr hook-func-pair) -90 t)))
(defun topspace--remove-hooks ()
"Remove hooks defined in `topspace--hook-alist'."
- [elpa] externals/topspace 8493ed0687 087/181: Fix bug where topspace-mode doesn't work locally (#6), (continued)
- [elpa] externals/topspace 8493ed0687 087/181: Fix bug where topspace-mode doesn't work locally (#6), ELPA Syncer, 2022/08/23
- [elpa] externals/topspace 97c69d912e 088/181: Update Changelog, ELPA Syncer, 2022/08/23
- [elpa] externals/topspace 04da9d1b5a 064/181: Create FUNDING.yml, ELPA Syncer, 2022/08/23
- [elpa] externals/topspace 0d85f3a0b0 074/181: It works except theres an error on startup, ELPA Syncer, 2022/08/23
- [elpa] externals/topspace 42ee241730 065/181: Update FUNDING.yml, ELPA Syncer, 2022/08/23
- [elpa] externals/topspace 22b87d68cb 077/181: Create changelog.yml, ELPA Syncer, 2022/08/23
- [elpa] externals/topspace 96f86179ef 083/181: Update Changelog, ELPA Syncer, 2022/08/23
- [elpa] externals/topspace 2329b63363 091/181: Update Changelog, ELPA Syncer, 2022/08/23
- [elpa] externals/topspace 4455f47ed4 093/181: Reword docstrings, ELPA Syncer, 2022/08/23
- [elpa] externals/topspace d0e7e89413 094/181: Put topspace-empty-line-indicator inside fringe (#9), ELPA Syncer, 2022/08/23
- [elpa] externals/topspace 9d6f0ef459 099/181: Fix terminal bug and minor mouse scrolling bug,
ELPA Syncer <=
- [elpa] externals/topspace 6d3b5e5cf7 103/181: Update README.md, ELPA Syncer, 2022/08/23
- [elpa] externals/topspace df7cb1ce4f 107/181: Bump version: 0.1.2 → 0.2.0, ELPA Syncer, 2022/08/23
- [elpa] externals/topspace edb0d582ae 108/181: Update Changelog, ELPA Syncer, 2022/08/23
- [elpa] externals/topspace c21ceb5e3a 109/181: Set back Unreleased as recent version in changelog, ELPA Syncer, 2022/08/23
- [elpa] externals/topspace e3cd398678 112/181: Fix bug caused by #11 when scrolling with topspace disabled, ELPA Syncer, 2022/08/23
- [elpa] externals/topspace cb9dbf5c0f 114/181: Start adding tests, ELPA Syncer, 2022/08/23
- [elpa] externals/topspace af98947c27 115/181: Prevent "Beginning of buffer" error message (#12), ELPA Syncer, 2022/08/23
- [elpa] externals/topspace ba275f7c94 119/181: Fix off-by-one-line scroll bug at top of buffer introduced in #10, ELPA Syncer, 2022/08/23
- [elpa] externals/topspace 334cf13ab5 121/181: Internal optimization, ELPA Syncer, 2022/08/23
- [elpa] externals/topspace f5d01b58f8 127/181: Update Changelog, ELPA Syncer, 2022/08/23