summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c760e6b)
raw | patch | inline | side by side (parent: c760e6b)
author | Jonas Fonseca <fonseca@diku.dk> | |
Wed, 17 May 2006 21:39:39 +0000 (23:39 +0200) | ||
committer | Jonas Fonseca <fonseca@antimatter.localdomain> | |
Wed, 17 May 2006 21:39:39 +0000 (23:39 +0200) |
tig.c | patch | blob | history |
index a4aaa0e1d64c9c0cc612c42449f52faf5c25dfa5..a0f79113736676ca9ee2cffb608e91d6cffa4701 100644 (file)
--- a/tig.c
+++ b/tig.c
wrefresh(view->title);
}
+static void
+redraw_display(void)
+{
+ struct view *view;
+ int i;
+
+ foreach_view (view, i) {
+ redraw_view(view);
+ update_view_title(view);
+ }
+}
+
+
/*
* Navigation
*/
}
case REQ_TOGGLE_LINE_NUMBERS:
opt_line_number = !opt_line_number;
- redraw_view(view);
- update_view_title(view);
+ redraw_display();
break;
case REQ_PROMPT:
resize_display();
/* Fall-through */
case REQ_SCREEN_REDRAW:
- foreach_view (view, i) {
- redraw_view(view);
- update_view_title(view);
- }
+ redraw_display();
break;
case REQ_SCREEN_UPDATE: