Code

Fix clearing of the loading flag in the input select loop
authorJonas Fonseca <fonseca@diku.dk>
Tue, 8 Jun 2010 00:06:42 +0000 (20:06 -0400)
committerJonas Fonseca <fonseca@diku.dk>
Tue, 8 Jun 2010 00:09:14 +0000 (20:09 -0400)
The bug was introduced in 33e10c2599e16ff6690e7b0bbdd7a95e7f97c886.

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 &&