summaryrefslogtreecommitdiff
path: root/lisp/term.el
diff options
context:
space:
mode:
authorJohn Shahid <jvshahid@gmail.com>2019-02-26 01:06:53 -0500
committerStefan Monnier <monnier@iro.umontreal.ca>2019-02-27 08:53:14 -0500
commit52cd63d52810cc6463c0876d83d688fcb9593192 (patch)
tree921468b80b0c6f5f5addd18578abcf17b36b0365 /lisp/term.el
parente828765d01313acddcf17279b6b43ae9f777f2a4 (diff)
downloademacs-52cd63d52810cc6463c0876d83d688fcb9593192.tar.gz
Add text properties to newlines used to unwrap long lines.
* lisp/term.el (term-emulate-terminal): do it.
Diffstat (limited to 'lisp/term.el')
-rw-r--r--lisp/term.el1
1 files changed, 1 insertions, 0 deletions
diff --git a/lisp/term.el b/lisp/term.el
index e759bb8e4fd..693362cc734 100644
--- a/lisp/term.el
+++ b/lisp/term.el
@@ -2935,6 +2935,7 @@ See `term-prompt-regexp'."
(delete-region (point) (line-end-position))
(term-down 1 t)
(term-move-columns (- (term-current-column)))
+ (put-text-property (1- (point)) (point) 'term-line-wrap t)
(setq decoded-substring
(substring decoded-substring (- term-width old-column)))
(setq old-column 0)))