style, consistent bool names, deprecate old config

This commit is contained in:
Ryan Farley 2021-05-07 04:40:07 -05:00
parent 5d71ccc174
commit dc9751cbfe
3 changed files with 32 additions and 6 deletions

View file

@ -2641,7 +2641,7 @@ term_bell(struct terminal *term)
notify_notify(term, "Bell", "Bell in terminal");
}
if (term->conf->bell.command.argv && (!term->kbd_focus || term->conf->bell.command_focused)) {
if ((term->conf->bell.command.argv != NULL) && (!term->kbd_focus || term->conf->bell.command_focused)) {
int devnull = open("/dev/null", O_RDONLY);
spawn(term->reaper, NULL, term->conf->bell.command.argv, devnull, -1, -1);