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:
8d27b36
)
Fix clearing of the status window after prompting
author
Jonas Fonseca
<fonseca@diku.dk>
Sun, 17 Sep 2006 23:00:29 +0000
(
01:00
+0200)
committer
Jonas Fonseca
<fonseca@antimatter.localdomain>
Sun, 17 Sep 2006 23:00:29 +0000
(
01:00
+0200)
tig.c
patch
|
blob
|
blame
|
history
diff --git
a/tig.c
b/tig.c
index 18b4488eb825d56041156ded00a5e2df7199256e..70bf7f37f252154a9766dff094eeba4c10387d27 100644
(file)
--- a/
tig.c
+++ b/
tig.c
@@
-3132,17
+3132,18
@@
static bool cursed = FALSE;
/* The status window is used for polling keystrokes. */
static WINDOW *status_win;
/* The status window is used for polling keystrokes. */
static WINDOW *status_win;
+static bool status_empty = TRUE;
+
/* Update status and title window. */
static void
report(const char *msg, ...)
{
/* Update status and title window. */
static void
report(const char *msg, ...)
{
- static bool empty = TRUE;
struct view *view = display[current_view];
if (input_mode)
return;
struct view *view = display[current_view];
if (input_mode)
return;
- if (!empty || *msg) {
+ if (!
status_
empty || *msg) {
va_list args;
va_start(args, msg);
va_list args;
va_start(args, msg);
@@
-3151,9
+3152,9
@@
report(const char *msg, ...)
wmove(status_win, 0, 0);
if (*msg) {
vwprintw(status_win, msg, args);
wmove(status_win, 0, 0);
if (*msg) {
vwprintw(status_win, msg, args);
- empty = FALSE;
+
status_
empty = FALSE;
} else {
} else {
- empty = TRUE;
+
status_
empty = TRUE;
}
wrefresh(status_win);
}
wrefresh(status_win);
@@
-3270,6
+3271,7
@@
read_prompt(const char *prompt)
if (status == CANCEL) {
/* Clear the status window */
if (status == CANCEL) {
/* Clear the status window */
+ status_empty = FALSE;
report("");
return NULL;
}
report("");
return NULL;
}