summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClément Lassieur <clement@lassieur.org>2018-10-05 14:51:04 +0200
committerClément Lassieur <clement.lassieur@parrot.com>2018-10-29 11:15:17 +0100
commite5f2c106d319176f63fdb39c1d0ebae163ab753a (patch)
treed707ba10e7ff0fdf398fe533aedbe5b6d29c990b
parent507da9cbf4e563e5aaefa9142fd82abc6d25c4b0 (diff)
downloadpackages-e5f2c106d319176f63fdb39c1d0ebae163ab753a.tar.gz
term: allow to use spaces in names
-rw-r--r--oe/oe-term.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/oe/oe-term.el b/oe/oe-term.el
index 26510c2..bcc76a8 100644
--- a/oe/oe-term.el
+++ b/oe/oe-term.el
@@ -79,7 +79,8 @@ The Xterm class will be based on NAME. If HOST is different than
`(system-name)', COMMANDS will be sent through ssh. If SCREEN is non-nil,
commands will be sent within a screen session, called NAME."
(let* ((default-directory "~")
- (class (format "*XTerm-%s*" (replace-regexp-in-string " " "-" name)))
+ (name (replace-regexp-in-string " " "-" name))
+ (class (format "*XTerm-%s*" name))
(ssh-prefix (if (oe-ssh-wanted? host) (concat "ssh -t " host) ""))
(source-profile (oe-term-source-scripts-command
(oe-term-make-script-list host)))