From: Chris Allegretta Date: Mon, 19 Jun 2000 05:45:52 +0000 (+0000) Subject: Fix lack of update on width resize X-Git-Tag: v0.9.11~17 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=97accc6f12177ffe4d0e103480c8b34ef28af181;p=nano.git Fix lack of update on width resize git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@28 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- diff --git a/ChangeLog b/ChangeLog index 6f069e1e..9783ebdc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -6,15 +6,37 @@ since last release (CVS Only) - 06/06/2000 we had been seeing. Affects: add_marked_sameline, edit_add, and many others. (Rob Siemborski) - totsize fixes (Rob Siemborski) + total_refresh(): + - Cut dispaly_main_list call, as this function is only supposed to refresh + what's already on the screen, not go through the process of adding the + text again. - cut.c: - totsize fixes (Rob Siemborski) - nano.c: - experimental do_wrap and check_wrap (Adam Rogoyski) + - Removed editwineob, as it was redundant for (editwinrows - 1). + Changed all calls to editwinrows - 1 in nano.c and move.c. + - Removed all functions that were split into other files. + Affects LOTS of funcs. do_enter(): - Added reset of placewewant to end. do_insertfile(): - Fix display problem when using ctrl-r to load a file into the buffer (Rob Siemborski) + handle_sigwinch(): + - Added titlebar(), edit_refresh() and display_main_list() calls because + a resize wasn't picking up on possible different width correctly. +- utils.c: + - Moved nmalloc() and nrealloc() here. +- move.c: + - New file, contains movement functions (like do_home(), do_up(), + do_down(), page_up(), etc...). +- files.c: + - Contains functions for files (read_file, insert_file, + do_writeout(), etc). +- search.c: + - Contains all our searching and related functions, (do_search(), + findnextstr(), do_replace(), do_gotoline()). nano-0.9.10 - 06/04/2000 - es.po: diff --git a/nano.c b/nano.c index 1db5f689..390d1541 100644 --- a/nano.c +++ b/nano.c @@ -1302,7 +1302,12 @@ void handle_sigwinch(int s) edit_update(editbot); } erase(); + + /* Do these b/c width may have changed... */ refresh(); + titlebar(); + edit_refresh(); + display_main_list(); total_refresh(); #endif } diff --git a/winio.c b/winio.c index af0e27c7..8bc33fa4 100644 --- a/winio.c +++ b/winio.c @@ -1043,7 +1043,6 @@ void display_main_list(void) int total_refresh(void) { - display_main_list(); clearok(edit, TRUE); clearok(topwin, TRUE); clearok(bottomwin, TRUE);