diff options
author | Thomas Roessler <roessler@does-not-exist.org> | 1999-11-25 15:18:00 +0000 |
---|---|---|
committer | Thomas Roessler <roessler@does-not-exist.org> | 1999-11-25 15:18:00 +0000 |
commit | e4391cf30fdc1c2190ac22640fb09654a86bf66f (patch) | |
tree | 4819df8c4868559c07ef79ab5401b5117047a836 /curs_lib.c | |
parent | e3c3035ca3d198f48846bd3d966a7860f0a61067 (diff) |
Undo the IMAP keepalive patch. It has just bitten me while mutt was
trying to dotlock a folder. Seems that there needs some more work
to be done.
Diffstat (limited to 'curs_lib.c')
-rw-r--r-- | curs_lib.c | 44 |
1 files changed, 14 insertions, 30 deletions
@@ -40,16 +40,9 @@ static event_t *KeyEvent; void mutt_refresh (void) { - /* don't refresh when we are waiting for a child. */ - if (option (OPTKEEPQUIET)) - return; - /* don't refresh in the middle of macros unless necessary */ - if (UngetCount && !option (OPTFORCEREFRESH)) - return; - - /* else */ - refresh (); + if (!UngetCount || option (OPTFORCEREFRESH)) + refresh (); } event_t mutt_getch (void) @@ -212,15 +205,12 @@ void mutt_curses_error (const char *fmt, ...) Errorbuf[ (COLS < sizeof (Errorbuf) ? COLS : sizeof (Errorbuf)) - 2 ] = 0; clean_error_buf(); - if (!option (OPTKEEPQUIET)) - { - BEEP (); - SETCOLOR (MT_COLOR_ERROR); - mvaddstr (LINES-1, 0, Errorbuf); - clrtoeol (); - SETCOLOR (MT_COLOR_NORMAL); - mutt_refresh (); - } + BEEP (); + SETCOLOR (MT_COLOR_ERROR); + mvaddstr (LINES-1, 0, Errorbuf); + clrtoeol (); + SETCOLOR (MT_COLOR_NORMAL); + mutt_refresh (); set_option (OPTMSGERR); } @@ -236,23 +226,17 @@ void mutt_message (const char *fmt, ...) Errorbuf[ (COLS < sizeof (Errorbuf) ? COLS : sizeof (Errorbuf)) - 2 ] = 0; clean_error_buf(); - if (!option (OPTKEEPQUIET)) - { - SETCOLOR (MT_COLOR_MESSAGE); - mvaddstr (LINES - 1, 0, Errorbuf); - clrtoeol (); - SETCOLOR (MT_COLOR_NORMAL); - mutt_refresh (); - } + SETCOLOR (MT_COLOR_MESSAGE); + mvaddstr (LINES - 1, 0, Errorbuf); + clrtoeol (); + SETCOLOR (MT_COLOR_NORMAL); + mutt_refresh (); unset_option (OPTMSGERR); } void mutt_show_error (void) { - if (option (OPTKEEPQUIET)) - return; - SETCOLOR (option (OPTMSGERR) ? MT_COLOR_ERROR : MT_COLOR_MESSAGE); CLEARLINE (LINES-1); addstr (Errorbuf); @@ -267,7 +251,7 @@ void mutt_endwin (const char *msg) CLEARLINE (LINES - 1); move (LINES - 1, 0); #else - move (LINES - 1, COLS - 1); + move (LINES - 1, COLS - 1); CLEARLINE (LINES - 1); #endif |