chiark
/
gitweb
/
~mdw
/
tig
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1044633
)
update_display_cursor: take view as arg
author
Jonas Fonseca
<fonseca@diku.dk>
Fri, 15 Sep 2006 00:41:20 +0000
(
02:41
+0200)
committer
Jonas Fonseca
<fonseca@antimatter.localdomain>
Fri, 15 Sep 2006 00:41:20 +0000
(
02:41
+0200)
tig.c
patch
|
blob
|
blame
|
history
diff --git
a/tig.c
b/tig.c
index 711b9adefe57a657837ff765260bed80ce7c06b3..1a5ed4af81f7e1117d1767802d2da38fa4032fc9 100644
(file)
--- 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. */