mirror of
https://github.com/irssi/irssi.git
synced 2024-11-03 04:27:19 -05:00
/WINDOW NAME x, /WINDOW NAME X shouldn't complain about existing window
having same name. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3001 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
d6c1cfa14b
commit
9b8406f335
@ -531,7 +531,10 @@ static void cmd_window_number(const char *data)
|
||||
/* SYNTAX: WINDOW NAME <name> */
|
||||
static void cmd_window_name(const char *data)
|
||||
{
|
||||
if (window_find_name(data) == NULL)
|
||||
WINDOW_REC *win;
|
||||
|
||||
win = window_find_name(data);
|
||||
if (win == NULL || win == active_win)
|
||||
window_set_name(active_win, data);
|
||||
else if (active_win->name == NULL ||
|
||||
strcmp(active_win->name, data) != 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user