summaryrefslogtreecommitdiff
path: root/lisp/eshell
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2022-06-22 06:23:24 +0200
committerLars Ingebrigtsen <larsi@gnus.org>2022-06-22 06:23:56 +0200
commit0301b295bb89f63689c892665af0a57d23a27809 (patch)
tree4a597bab6fd661769b57f59223fcf9ddba21eb9a /lisp/eshell
parent582356c45f86ef0e27e2e0e4c171b0c670148043 (diff)
downloademacs-0301b295bb89f63689c892665af0a57d23a27809.tar.gz
emacs-0301b295bb89f63689c892665af0a57d23a27809.tar.bz2
emacs-0301b295bb89f63689c892665af0a57d23a27809.zip
Don't drop existing escape char in eshell
* lisp/eshell/em-term.el (eshell-exec-visual): Don't drop existing escape char.
Diffstat (limited to 'lisp/eshell')
-rw-r--r--lisp/eshell/em-term.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/eshell/em-term.el b/lisp/eshell/em-term.el
index d150c07b030..9000e8c8784 100644
--- a/lisp/eshell/em-term.el
+++ b/lisp/eshell/em-term.el
@@ -186,8 +186,10 @@ allowed."
(set-process-sentinel proc #'eshell-term-sentinel)
(error "Failed to invoke visual command")))
(term-char-mode)
- (if eshell-escape-control-x
- (term-set-escape-char ?\C-x))))
+ (when eshell-escape-control-x
+ ;; Don't drop existing escape char.
+ (let (term-escape-char)
+ (term-set-escape-char ?\C-x)))))
nil)
;; Process sentinels receive two arguments.