[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/coterm 08cf379 19/80: Minor fixes
From: |
ELPA Syncer |
Subject: |
[elpa] externals/coterm 08cf379 19/80: Minor fixes |
Date: |
Wed, 13 Oct 2021 18:57:28 -0400 (EDT) |
branch: externals/coterm
commit 08cf379b5414e3ff88b917c9dd3f8bbdf90b526d
Author: m <>
Commit: m <>
Minor fixes
---
coterm.el | 25 ++++++++++++-------------
1 file changed, 12 insertions(+), 13 deletions(-)
diff --git a/coterm.el b/coterm.el
index 257f654..7cbbaeb 100644
--- a/coterm.el
+++ b/coterm.el
@@ -318,6 +318,7 @@ initialize it sensibly."
(setq restore-point (if (= (point) pmark) pmark (point-marker)))
(coterm--t-maybe-adjust-from-pmark pmark)
(save-restriction
+ (widen)
(unless (text-property-any
pmark (point-max) 'field 'output)
;; If pmark is at the end of buffer, not counting user input,
@@ -338,7 +339,8 @@ initialize it sensibly."
(cl-incf will-insert-newlines))
(?\n (ins) ;; (terminfo: cud1, ind)
(coterm--t-down-line proc-filt process)
- (setq coterm--t-col 0))
+ (setq coterm--t-col 0)
+ (dirty))
(?\r (ins) ;; (terminfo: cr)
(setq coterm--t-col 0)
(dirty))
@@ -359,23 +361,22 @@ initialize it sensibly."
(setq coterm--t-saved-cursor
(list coterm--t-row
coterm--t-col
- (when (boundp 'ansi-color-context-region)
- (cons ansi-color-context-region
- ansi-color-context)))))
+ ansi-color-context-region
+ ansi-color-context)))
(?8 (ins) ;; Restore cursor (terminfo: rc)
(when-let ((cursor coterm--t-saved-cursor))
(setq coterm--t-row (max (car cursor) (1-
coterm--t-height)))
(setq cursor (cdr 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))
- (setq ansi-color-context (cdar cursor)))))
+ (setq ansi-color-context-region (car cursor))
+ (setq ansi-color-context (cadr cursor))
+ (dirty)))
(?c (ins) ;; \Ec - Reset (terminfo: rs1)
(erase-buffer)
- (when (boundp 'ansi-color-context-region)
- (setq ansi-color-context-region nil)
- (setq ansi-color-context nil))
+ (setq ansi-color-context-region nil)
+ (setq ansi-color-context nil)
+ (setq coterm--t-home-offset 0)
(setq coterm--t-row 0)
(setq coterm--t-col 0)
(setq coterm--t-scroll-beg 0)
@@ -505,9 +506,7 @@ initialize it sensibly."
(setq ctl-end (1+ match)))
(ins)
(setq coterm--t-unhandled-fragment (substring string
last-match-end)))
- ((and (null last-match-end)
- ;; TODO Smo na koncu, razen vhoda
- )
+ ((null last-match-end)
;; Optimization, no substring means no string copying
(coterm--t-insert proc-filt process string will-insert-newlines))
(t
- [elpa] externals/coterm 0647615 04/80: Plug marker leak, (continued)
- [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, 2021/10/13
- [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 <=
- [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
- [elpa] externals/coterm dfebb62 46/80: Add comint output filter function buffer locally, ELPA Syncer, 2021/10/13
- [elpa] externals/coterm bd103f9 56/80: [auto-char] Fix searching in less, ELPA Syncer, 2021/10/13
- [elpa] externals/coterm d5042f6 65/80: Inhibit Emacs from automatically decoding \r\n into \n, ELPA Syncer, 2021/10/13
- [elpa] externals/coterm 90823af 77/80: Revert "Inhibit Emacs from automatically decoding \r\n into \n", ELPA Syncer, 2021/10/13
- [elpa] externals/coterm 066cd45 70/80: Explain how coterm does/doesn't do line-wrapping, ELPA Syncer, 2021/10/13
- [elpa] externals/coterm 08208f3 33/80: Handle \r\n sequence properly, ELPA Syncer, 2021/10/13