Code

Fix clearing of the loading flag in the input select loop
[tig.git] / tig.c
diff --git a/tig.c b/tig.c
index 01f48c35766cdcb1541513eef7f48d078cd6f0dc..c963977bbdcdb71338534f27440563107ac9d8b1 100644 (file)
--- a/tig.c
+++ b/tig.c
@@ -7086,12 +7086,13 @@ get_input(int prompt_position)
 {
        struct view *view;
        int i, key, cursor_y, cursor_x;
-       bool loading = FALSE;
 
        if (prompt_position)
                input_mode = TRUE;
 
        while (TRUE) {
+               bool loading = FALSE;
+
                foreach_view (view, i) {
                        update_view(view);
                        if (view_is_displayed(view) && view->has_scrolled &&