Ctrl-l does a full refresh
* Use redrawwin() to tell curses the screen has been corrupted
* Prevent a resize from ending auto-away
--- 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: