mirror of
https://github.com/tmux/tmux.git
synced 2026-05-30 14:16:18 +00:00
No need to stravis the window name twice.
This commit is contained in:
2
window.c
2
window.c
@@ -413,7 +413,7 @@ window_set_name(struct window *w, const char *new_name)
|
|||||||
name = clean_name(new_name, "#");
|
name = clean_name(new_name, "#");
|
||||||
if (name != NULL) {
|
if (name != NULL) {
|
||||||
free(w->name);
|
free(w->name);
|
||||||
utf8_stravis(&w->name, new_name, VIS_OCTAL|VIS_CSTYLE|VIS_TAB|VIS_NL);
|
w->name = name;
|
||||||
notify_window("window-renamed", w);
|
notify_window("window-renamed", w);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user