Code

When toggling options redraw the view instead of the whole display
authorJonas Fonseca <fonseca@diku.dk>
Thu, 3 Apr 2008 17:18:11 +0000 (19:18 +0200)
committerJonas Fonseca <fonseca@diku.dk>
Thu, 3 Apr 2008 17:21:56 +0000 (19:21 +0200)
tig.c

diff --git a/tig.c b/tig.c
index eddd86e402ad5faba78622eaf114740496fa8da7..b723587396642303b5c04370ad10e288277f1b0e 100644 (file)
--- a/tig.c
+++ b/tig.c
@@ -2639,27 +2639,27 @@ view_driver(struct view *view, enum request request)
 
        case REQ_TOGGLE_LINENO:
                opt_line_number = !opt_line_number;
-               redraw_display();
+               redraw_view(view);
                break;
 
        case REQ_TOGGLE_DATE:
                opt_date = !opt_date;
-               redraw_display();
+               redraw_view(view);
                break;
 
        case REQ_TOGGLE_AUTHOR:
                opt_author = !opt_author;
-               redraw_display();
+               redraw_view(view);
                break;
 
        case REQ_TOGGLE_REV_GRAPH:
                opt_rev_graph = !opt_rev_graph;
-               redraw_display();
+               redraw_view(view);
                break;
 
        case REQ_TOGGLE_REFS:
                opt_show_refs = !opt_show_refs;
-               redraw_display();
+               redraw_view(view);
                break;
 
        case REQ_PROMPT: