fix rest_on_space

When rest_on_space is On, assign same function as for #wait to the
<space> key.  When Off, set that key to Null instead.  Binding some
other command to <space> when rest_on_space is Off doesn't work but
I would classify that as something to be discouraged anyway.
This commit is contained in:
PatR
2022-01-21 15:51:05 -08:00
parent 75fed4b92b
commit 6a72e48a40
4 changed files with 26 additions and 4 deletions

View File

@@ -4225,6 +4225,9 @@ optfn_boolean(int optidx, int req, boolean negated, char *opts, char *op)
case opt_mention_decor:
iflags.prev_decor = STONE;
break;
case opt_rest_on_space:
update_rest_on_space();
break;
}
/* boolean value has been toggled but some option changes can
@@ -5908,6 +5911,7 @@ initoptions_finish(void)
}
}
#endif
update_rest_on_space();
g.opt_initial = FALSE;
return;
}