Mercurial > hg
changeset 388:f211238d5812
Ctrl-l does a full refresh
* Use redrawwin() to tell curses the screen has been corrupted
* Prevent a resize from ending auto-away
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Fri, 29 Jul 2005 20:28:06 +0100 |
parents | 2bbeef7b4fdd |
children | 6e895f397474 |
files | mcabber/src/screen.c |
diffstat | 1 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mcabber/src/screen.c Fri Jul 29 19:09:07 2005 +0100 +++ b/mcabber/src/screen.c Fri Jul 29 20:28:06 2005 +0100 @@ -640,8 +640,10 @@ rescue_top = hbuf_previous_persistent(search_entry->top); hbuf_rebuild(&search_entry->hbuf, maxX - ROSTER_WIDTH - PREFIX_WIDTH); - if (g_list_position(g_list_first(search_entry->hbuf), search_entry->top) == -1) + if (g_list_position(g_list_first(search_entry->hbuf), + search_entry->top) == -1) { search_entry->top = rescue_top; + } } } @@ -1598,8 +1600,9 @@ update_panels(); break; case 12: // Ctrl-l + scr_CheckAutoAway(TRUE); + redrawwin(stdscr); case KEY_RESIZE: - scr_CheckAutoAway(TRUE); scr_Resize(); break; default: