Commit Diff


commit - 20d2d786a08eff2fabb7addf495c55753db0614f
commit + 6347dcd0e32a0955b60ef47d1fa26e5b0f94c1a1
blob - ed00b25330e3de1c47f9ca49b0170c532e826edc
blob + 554df3f47a1a4793f5dae563d298cc5a5829c2c8
--- ui.c
+++ ui.c
@@ -1394,13 +1394,14 @@ update_loading_anim(int fd, short ev, void *d)
 	struct tab	*tab = d;
 
 	tab->s.loading_anim_step = (tab->s.loading_anim_step+1)%4;
-
-	redraw_modeline(tab);
-	wrefresh(modeline);
 
-	wrefresh(body);
-	if (in_minibuffer)
-		wrefresh(minibuf);
+	if (tab->flags & TAB_CURRENT) {
+		redraw_modeline(tab);
+		wrefresh(modeline);
+		wrefresh(body);
+		if (in_minibuffer)
+			wrefresh(minibuf);
+	}
 
 	evtimer_add(&tab->s.loadingev, &loadingev_timer);
 }