From e03bd9b72792f93b1445d212e3ae829a75f311a4 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Sun, 14 Apr 2002 16:30:13 +0000 Subject: /EXEC -interactive : only numbered /execs should have the % prefix. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2680 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/fe-common/core/fe-exec.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/fe-common/core/fe-exec.c b/src/fe-common/core/fe-exec.c index bfc75465..ad018aa7 100644 --- a/src/fe-common/core/fe-exec.c +++ b/src/fe-common/core/fe-exec.c @@ -67,8 +67,7 @@ static EXEC_WI_REC *exec_wi_create(WINDOW_REC *window, PROCESS_REC *rec) item = g_new0(EXEC_WI_REC, 1); item->type = module_get_uniq_id_str("WINDOW ITEM TYPE", "EXEC"); item->destroy = (void (*) (WI_ITEM_REC *)) exec_wi_destroy; - item->name = rec->name != NULL ? - g_strdup_printf("%%%s", rec->name) : + item->name = rec->name != NULL ? g_strdup(rec->name) : g_strdup_printf("%%%d", rec->id); item->createtime = time(NULL); -- cgit v1.2.3