comparison mcabber/src/screen.c @ 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 d59e9b8c91d3
children 6e895f397474
comparison
equal deleted inserted replaced
387:2bbeef7b4fdd 388:f211238d5812
638 } 638 }
639 // Redo line wrapping 639 // Redo line wrapping
640 rescue_top = hbuf_previous_persistent(search_entry->top); 640 rescue_top = hbuf_previous_persistent(search_entry->top);
641 hbuf_rebuild(&search_entry->hbuf, 641 hbuf_rebuild(&search_entry->hbuf,
642 maxX - ROSTER_WIDTH - PREFIX_WIDTH); 642 maxX - ROSTER_WIDTH - PREFIX_WIDTH);
643 if (g_list_position(g_list_first(search_entry->hbuf), search_entry->top) == -1) 643 if (g_list_position(g_list_first(search_entry->hbuf),
644 search_entry->top) == -1) {
644 search_entry->top = rescue_top; 645 search_entry->top = rescue_top;
646 }
645 } 647 }
646 } 648 }
647 649
648 // Refresh current buddy window 650 // Refresh current buddy window
649 if (chatmode) 651 if (chatmode)
1596 top_panel(chatPanel); 1598 top_panel(chatPanel);
1597 top_panel(inputPanel); 1599 top_panel(inputPanel);
1598 update_panels(); 1600 update_panels();
1599 break; 1601 break;
1600 case 12: // Ctrl-l 1602 case 12: // Ctrl-l
1603 scr_CheckAutoAway(TRUE);
1604 redrawwin(stdscr);
1601 case KEY_RESIZE: 1605 case KEY_RESIZE:
1602 scr_CheckAutoAway(TRUE);
1603 scr_Resize(); 1606 scr_Resize();
1604 break; 1607 break;
1605 default: 1608 default:
1606 { 1609 {
1607 const gchar *boundcmd = isbound(key); 1610 const gchar *boundcmd = isbound(key);