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:
fac7db6
)
Try to improve report("")
author
Jonas Fonseca
<fonseca@diku.dk>
Sun, 14 May 2006 03:13:21 +0000
(
05:13
+0200)
committer
Jonas Fonseca
<fonseca@antimatter.localdomain>
Sun, 14 May 2006 03:13:21 +0000
(
05:13
+0200)
tig.c
patch
|
blob
|
blame
|
history
diff --git
a/tig.c
b/tig.c
index 5ca8a02b9f3386a23d46496ac3c3c776837da544..f1349602414e87dc6811261a824ff789fd719c8e 100644
(file)
--- a/
tig.c
+++ b/
tig.c
@@
-458,6
+458,7
@@
struct keymap keymap[] = {
/* wgetch() with nodelay() enabled returns ERR when there's no input. */
{ ERR, REQ_SCREEN_UPDATE },
/* wgetch() with nodelay() enabled returns ERR when there's no input. */
{ ERR, REQ_SCREEN_UPDATE },
+
/* Use the ncurses SIGWINCH handler. */
{ KEY_RESIZE, REQ_SCREEN_RESIZE },
};
/* Use the ncurses SIGWINCH handler. */
{ KEY_RESIZE, REQ_SCREEN_RESIZE },
};
@@
-1620,15
+1621,16
@@
report(const char *msg, ...)
{
va_list args;
{
va_list args;
- va_start(args, msg);
-
/* Update the title window first, so the cursor ends up in the status
* window. */
update_view_title(display[current_view]);
/* Update the title window first, so the cursor ends up in the status
* window. */
update_view_title(display[current_view]);
+ va_start(args, msg);
+
werase(status_win);
wmove(status_win, 0, 0);
werase(status_win);
wmove(status_win, 0, 0);
- vwprintw(status_win, msg, args);
+ if (*msg)
+ vwprintw(status_win, msg, args);
wrefresh(status_win);
va_end(args);
wrefresh(status_win);
va_end(args);