1
1

Fix lack of update on width resize

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@28 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
Этот коммит содержится в:
Chris Allegretta 2000-06-19 05:45:52 +00:00
родитель bceb1b21a6
Коммит 97accc6f12
3 изменённых файлов: 27 добавлений и 1 удалений

Просмотреть файл

@ -6,15 +6,37 @@ since last release (CVS Only) - 06/06/2000
we had been seeing. Affects: add_marked_sameline, edit_add, we had been seeing. Affects: add_marked_sameline, edit_add,
and many others. (Rob Siemborski) and many others. (Rob Siemborski)
- totsize fixes (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: - cut.c:
- totsize fixes (Rob Siemborski) - totsize fixes (Rob Siemborski)
- nano.c: - nano.c:
- experimental do_wrap and check_wrap (Adam Rogoyski) - 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(): do_enter():
- Added reset of placewewant to end. - Added reset of placewewant to end.
do_insertfile(): do_insertfile():
- Fix display problem when using ctrl-r to load a file - Fix display problem when using ctrl-r to load a file
into the buffer (Rob Siemborski) 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 nano-0.9.10 - 06/04/2000
- es.po: - es.po:

5
nano.c
Просмотреть файл

@ -1302,7 +1302,12 @@ void handle_sigwinch(int s)
edit_update(editbot); edit_update(editbot);
} }
erase(); erase();
/* Do these b/c width may have changed... */
refresh(); refresh();
titlebar();
edit_refresh();
display_main_list();
total_refresh(); total_refresh();
#endif #endif
} }

Просмотреть файл

@ -1043,7 +1043,6 @@ void display_main_list(void)
int total_refresh(void) int total_refresh(void)
{ {
display_main_list();
clearok(edit, TRUE); clearok(edit, TRUE);
clearok(topwin, TRUE); clearok(topwin, TRUE);
clearok(bottomwin, TRUE); clearok(bottomwin, TRUE);