From: Jonas Fonseca Date: Fri, 15 Sep 2006 00:41:20 +0000 (+0200) Subject: update_display_cursor: take view as arg X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=2bee3bdeb5fef5d8f64ac047dbcc0c9f27ea26f1;p=tig.git update_display_cursor: take view as arg --- diff --git a/tig.c b/tig.c index 711b9ad..1a5ed4a 100644 --- a/tig.c +++ b/tig.c @@ -1414,10 +1414,8 @@ redraw_display(void) } static void -update_display_cursor(void) +update_display_cursor(struct view *view) { - struct view *view = display[current_view]; - /* Move the cursor to the right-most column of the cursor line. * * XXX: This could turn out to be a bit expensive, but it ensures that @@ -3132,7 +3130,7 @@ report(const char *msg, ...) } update_view_title(view); - update_display_cursor(); + update_display_cursor(view); } /* Controls when nodelay should be in effect when polling user input. */