[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/coterm 07a2570 69/80: Work around a line wrapping issue
From: |
ELPA Syncer |
Subject: |
[elpa] externals/coterm 07a2570 69/80: Work around a line wrapping issue with "less" |
Date: |
Wed, 13 Oct 2021 18:57:38 -0400 (EDT) |
branch: externals/coterm
commit 07a257077458e5121817ccdb1ee4eb61317dd662
Author: m <>
Commit: m <>
Work around a line wrapping issue with "less"
---
coterm.el | 16 +++++++++++++++-
1 file changed, 15 insertions(+), 1 deletion(-)
diff --git a/coterm.el b/coterm.el
index 2a5c4d1..2ce48e5 100644
--- a/coterm.el
+++ b/coterm.el
@@ -778,7 +778,7 @@ buffer and the scrolling region must cover the whole
screen."
(set-marker coterm--t-home-marker (point))
(setq coterm--t-home-offset 0)
(setq coterm--t-row (1- coterm--t-height))))
- (setq coterm--t-col (min column (1- coterm--t-width)))))
+ (setq coterm--t-col column)))
(defun coterm--t-adjust-from-pmark (pos)
"Point `coterm--t-row' and `coterm--t-col' POS."
@@ -888,6 +888,20 @@ buffer and the scrolling region must cover the whole
screen."
(+ coterm--t-col 8 (- (mod coterm--t-col 8)))))
(dirty))
(?\b (ins) ;; (terminfo: cub1)
+
+ (when (and (= coterm--t-col (1+ coterm--t-width))
+ (not (coterm--t-scroll-by-deletion-p))
+ (coterm--t-goto coterm--t-row coterm--t-col)
+ (eq (char-before) ?\s))
+ ;; Awkward hack to make line-wrapping work in "less".
+ ;; Very specific for the way "less" performs wrapping.
+ ;; For all other cases, coterm does not support any
+ ;; wrapping at all.
+ (delete-char -1)
+ (coterm--t-down-line proc-filt process)
+ (setq coterm--t-col 0)
+ (coterm--t-insert proc-filt process " " 0))
+
(setq coterm--t-col (max (1- coterm--t-col) 0))
(dirty))
(?\C-g (ins) ;; (terminfo: bel)
- [elpa] externals/coterm bfcd5e4 63/80: Properly indicate that pmark is synchronized, (continued)
- [elpa] externals/coterm bfcd5e4 63/80: Properly indicate that pmark is synchronized, ELPA Syncer, 2021/10/13
- [elpa] externals/coterm 96a636e 64/80: Protect user input at EOB more accurately, ELPA Syncer, 2021/10/13
- [elpa] externals/coterm bd7c681 73/80: Further document the "less" line-wrap workaround, ELPA Syncer, 2021/10/13
- [elpa] externals/coterm e0a38cc 53/80: Add more documentation for auto char mode, ELPA Syncer, 2021/10/13
- [elpa] externals/coterm 10205c8 66/80: Improve README, ELPA Syncer, 2021/10/13
- [elpa] externals/coterm 7941200 61/80: Describe package, ELPA Syncer, 2021/10/13
- [elpa] externals/coterm e268359 59/80: Account for home marker reposition when clearing screen, ELPA Syncer, 2021/10/13
- [elpa] externals/coterm 8a5ffd9 68/80: Fix 'coterm--t-goto' for column zero, ELPA Syncer, 2021/10/13
- [elpa] externals/coterm 11a9594 78/80: [auto-char] Detect prompts from "less -M", ELPA Syncer, 2021/10/13
- [elpa] externals/coterm 8ca9291 71/80: Minor fixes to description, ELPA Syncer, 2021/10/13
- [elpa] externals/coterm 07a2570 69/80: Work around a line wrapping issue with "less",
ELPA Syncer <=
- [elpa] externals/coterm 139e8d0 79/80: Fix for Emacs 27, ELPA Syncer, 2021/10/13
- [elpa] externals/coterm 5aea1c8 25/80: Fixup some comments, ELPA Syncer, 2021/10/13
- [elpa] externals/coterm f48ef18 26/80: Fix \e[M and \e[L outside scrolling region, ELPA Syncer, 2021/10/13
- [elpa] externals/coterm 3599955 35/80: Fixes for documentation and compiler warnings, ELPA Syncer, 2021/10/13
- [elpa] externals/coterm c535023 36/80: Safeguard against negative values in move-to-column, ELPA Syncer, 2021/10/13
- [elpa] externals/coterm b35e077 40/80: Reorganize file, ELPA Syncer, 2021/10/13
- [elpa] externals/coterm 2358124 48/80: Try to enter and leave char-mode automatically, ELPA Syncer, 2021/10/13
- [elpa] externals/coterm 13dd76a 51/80: Adjust mpv prompt detecting regexp, ELPA Syncer, 2021/10/13
- [elpa] externals/coterm 34d8808 54/80: Improve less prompt regexp, ELPA Syncer, 2021/10/13
- [elpa] externals/coterm dd06737 55/80: Improve regexp matching mpv prompt, ELPA Syncer, 2021/10/13