Commit 2da81403 authored by Sebastian Ramacher's avatar Sebastian Ramacher

Simplify

parent 278274e8
......@@ -214,7 +214,7 @@ find_next(GiraraInputHistory* history, const char* current_input, bool next)
size_t i = 0;
const char* command = NULL;
while (i < length) {
for (; i < length; ++i) {
if (priv->reset == true || next == false) {
if (priv->current < 1) {
priv->reset = false;
......@@ -247,8 +247,6 @@ find_next(GiraraInputHistory* history, const char* current_input, bool next)
priv->current_match = priv->current;
break;
}
++i;
}
if (i == length) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment