mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-06 07:15:30 -04:00
util: add streq() function and use in place of strcmp(...) == 0
This commit is contained in:
parent
44c0cf594b
commit
e0f3703ae6
16 changed files with 172 additions and 165 deletions
|
|
@ -3243,7 +3243,7 @@ term_set_window_title(struct terminal *term, const char *title)
|
|||
if (term->conf->locked_title && term->window_title_has_been_set)
|
||||
return;
|
||||
|
||||
if (term->window_title != NULL && strcmp(term->window_title, title) == 0)
|
||||
if (term->window_title != NULL && streq(term->window_title, title))
|
||||
return;
|
||||
|
||||
free(term->window_title);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue