mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 21:33:09 +00: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
1 changed files with 2 additions and 2 deletions
|
@ -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 a new issue