summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob L. Kreuze2020-07-02 21:14:45 -0400
committerJakob L. Kreuze2020-07-02 21:14:45 -0400
commitf0a4bb3e6db11de4332c33fe671efb6d5b85362e (patch)
tree59e6543eaa3e5b6b252ad51957152d5eebadf39b
parent09c9a7a96c28d7bfc85ac182e92d81a0d2b92a3e (diff)
Properly parse visual commands.
-rw-r--r--lisp/shell.el12
1 files changed, 6 insertions, 6 deletions
diff --git a/lisp/shell.el b/lisp/shell.el
index ecd1433..0ff7b7e 100644
--- a/lisp/shell.el
+++ b/lisp/shell.el
@@ -147,12 +147,12 @@
(args (cl-rest (split-string input " ")))
(visual (cl-member command visual-commands :test #'string=)))
(cond ((string= command "man") (man (string-join args " "))
- (shell-fake-comint-send))
- (visual (apply #'start-process "" nil "alacritty"
- "--class" (format "*%s*,*%s*" command command)
- "-t" input
- "-e" command args)
- (shell-fake-comint-send))
+ (shell-fake-comint-send pmark))
+ (visual (start-process
+ "" nil "alacritty"
+ "--class" (format "*%s*,*%s*" command command)
+ "-e" "bash" "-c" (format "echo -ne \"\033]0;%s\007\" && %s" input input))
+ (shell-fake-comint-send pmark))
(t (comint-send-input)))))))
(bind-key "RET" 'shell-screen-command shell-mode-map)

© 2015 - 2026 Jakob L. Kreuze