mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-26 10:43:47 +08:00
reader: Pre-increment
If we don't do it now, static analysis things are just gonna bug us until someone does it.
This commit is contained in:
parent
575d574691
commit
9f924f37fb
|
@ -2584,7 +2584,7 @@ static int read_i(parser_t &parser) {
|
|||
data->import_history_if_necessary();
|
||||
|
||||
while (!check_exit_loop_maybe_warning(data.get())) {
|
||||
run_count++;
|
||||
++run_count;
|
||||
|
||||
maybe_t<wcstring> tmp = data->readline(0);
|
||||
if (tmp && !tmp->empty()) {
|
||||
|
@ -2597,7 +2597,7 @@ static int read_i(parser_t &parser) {
|
|||
auto eval_res = reader_run_command(parser, command);
|
||||
signal_clear_cancel();
|
||||
if (!eval_res.no_status) {
|
||||
status_count++;
|
||||
++status_count;
|
||||
}
|
||||
|
||||
// If the command requested an exit, then process it now and clear it.
|
||||
|
|
Loading…
Reference in New Issue
Block a user