From 2bee3bdeb5fef5d8f64ac047dbcc0c9f27ea26f1 Mon Sep 17 00:00:00 2001 From: Jonas Fonseca Date: Fri, 15 Sep 2006 02:41:20 +0200 Subject: [PATCH] update_display_cursor: take view as arg --- tig.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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. */ -- 2.11.0