~ecs/sd

d988cda562c3800b153ba8407b2c9f3330c80ba2 — Eyal Sawady 9 months ago 62d1c80
run_command: keep searching on -2

Seems like the right behavior.
1 files changed, 4 insertions(+), 1 deletions(-)

M common.c
M common.c => common.c +4 -1
@@ 254,8 254,11 @@ run_command(struct state *state, const char *cmd)
	size_t i;
	for (i = 0; i < state->reg.sz; i++) {
		if (!strcmp(cmd, state->reg.contents[i].cmd)) {
			int ret = state->reg.contents[i].func(state);
			set_row(&state->status, "");
			return state->reg.contents[i].func(state);
			if (ret != -2) {
				return ret;
			}
		}
	}