Permalink
Browse files

After setting an option, refresh the view if possible

Redrawing is not always enough but is still used as a fallback if the
view is unrefreshable.

Signed-off-by: Jonas Fonseca <fonseca@diku.dk>
  • Loading branch information...
1 parent ebf5058 commit 057579a6b703ddf7e0496fd84f20015acadb7a10 @tsibley tsibley committed with Feb 13, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 tig.c
View
2 tig.c
@@ -8325,7 +8325,7 @@ run_prompt_command(struct view *view, char *cmd) {
if (args) {
*args++ = 0;
if (set_option(cmd, args) == OPT_OK) {
- request = REQ_SCREEN_REDRAW;
+ request = !view->unrefreshable ? REQ_REFRESH : REQ_SCREEN_REDRAW;
if (!strcmp(cmd, "color"))
init_colors();
}

0 comments on commit 057579a

Please sign in to comment.