чување 7b0d1012c036793ce3dd29fe96c25549184055c6
родитељ 86009e3391213808265968589078d47da34ddb69
Аутор: Страхиња Радић <contact@strahinja.org>
Датум: Fri, 9 Jul 2021 18:41:38 +0200
Added automatic go to next match when typing
Signed-off-by: Страхиња Радић <contact@strahinja.org>
Diffstat:
измењених датотека: 1, додавања: 8(+), брисања: 0(-)
diff --git a/poe.c b/poe.c
@@ -568,6 +568,8 @@ insert_search_char(struct DrawState* state, uint32_t ch)
}
if (add_null)
state->search[state->search_column] = 0;
+
+ next_match(state);
}
}
@@ -598,6 +600,8 @@ erase_search_backwards(struct DrawState* state)
state->search_display_column = display_length(state,
state->search,
state->search_column);
+
+ next_match(state);
}
}
@@ -613,6 +617,8 @@ erase_search_forward(struct DrawState* state)
i++;
}
state->search[i] = 0;
+
+ next_match(state);
}
}
@@ -629,6 +635,7 @@ erase_search_to_start(struct DrawState* state)
while (state->search[i]);
state->search[len-state->search_column] = 0;
move_search_start(state);
+ next_match(state);
}
void
@@ -636,6 +643,7 @@ erase_search_to_end(struct DrawState* state)
{
state->search[state->search_column] = 0;
move_search_end(state);
+ next_match(state);
}
void