Commit Diff


commit - 5e224a3e31ca7c4284809b162034c76cae0c3e0b
commit + 359bfafdf181ae248b2c7fdcaa286027d91d5729
blob - 8f47bf49601e47b7789f05fd5d1faff678a68618
blob + 7c74aca307c8352acd0cfcb8c36a8bc33bcc4d7a
--- tog/tog.c
+++ tog/tog.c
@@ -1151,6 +1151,9 @@ draw_commits(struct tog_view *view, struct commit_queu
 				goto done;
 		}
 	}
+
+	if (commits_needed == 0)
+		halfdelay(10); /* disable fast refresh */
 
 	if (asprintf(&ncommits_str, " [%d/%d] %s",
 	    entry ? entry->idx + 1 : 0, commits->ncommits,
@@ -1271,6 +1274,7 @@ trigger_log_thread(int load_all, int *commits_needed, 
 			 * remains interactive while logging deep paths
 			 * with few commits in history.
 			 */
+			halfdelay(1); /* fast refresh while loading */
 			return NULL;
 		}
 	}