rename total_update() total_redraw() for consistency

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2725 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
master
David Lawrence Ramsey 2005-06-18 15:49:17 +00:00
parent 7431fe5e93
commit c54c4d1eea
5 changed files with 10 additions and 10 deletions

View File

@ -219,7 +219,7 @@ CVS code -
(DLR) (DLR)
do_spell() do_spell()
- If the spell-checker printed any error messages onscreen, call - If the spell-checker printed any error messages onscreen, call
total_update() to make sure they're cleared off. (DLR, found total_redraw() to make sure they're cleared off. (DLR, found
by CHAO Wei-Lun) by CHAO Wei-Lun)
do_output() do_output()
- Properly allow wrapping when we insert a tab, for consistency. - Properly allow wrapping when we insert a tab, for consistency.
@ -312,7 +312,7 @@ CVS code -
(DLR) (DLR)
do_yesno() do_yesno()
- Allow refreshing the screen via Ctrl-L, as Pico does. (DLR) - Allow refreshing the screen via Ctrl-L, as Pico does. (DLR)
total_update() total_redraw()
- Simplify to call clearok(TRUE) and wrefresh() on edit, which - Simplify to call clearok(TRUE) and wrefresh() on edit, which
updates the entire screen in fewer function calls. (DLR) updates the entire screen in fewer function calls. (DLR)
- When using slang, use SLsmg_touch_screen() and SLsmg_refresh() - When using slang, use SLsmg_touch_screen() and SLsmg_refresh()
@ -805,7 +805,7 @@ GNU nano 1.3.6 - 2005.03.20
- Refresh bottomwin using the value of currshortcut, and change - Refresh bottomwin using the value of currshortcut, and change
the code around do_refresh() calls to accommodate this. (DLR) the code around do_refresh() calls to accommodate this. (DLR)
- Split out the code that updates the screen before refreshing - Split out the code that updates the screen before refreshing
it into the new function total_update(). it into the new function total_redraw().
do_help() do_help()
- Refresh the screen when Ctrl-L is pressed in the help browser, - Refresh the screen when Ctrl-L is pressed in the help browser,
as Pico does. (DLR) as Pico does. (DLR)

View File

@ -2655,7 +2655,7 @@ char *do_browser(char *path, DIR *dir)
/* Refresh the screen. */ /* Refresh the screen. */
case NANO_REFRESH_KEY: case NANO_REFRESH_KEY:
total_update(); total_redraw();
break; break;
/* Go to a specific directory. */ /* Go to a specific directory. */

View File

@ -2509,7 +2509,7 @@ void do_spell(void)
/* If the spell-checker printed any error messages onscreen, make /* If the spell-checker printed any error messages onscreen, make
* sure they're cleared off. */ * sure they're cleared off. */
total_update(); total_redraw();
if (spell_msg != NULL) if (spell_msg != NULL)
statusbar(_("Spell checking failed: %s: %s"), spell_msg, statusbar(_("Spell checking failed: %s: %s"), spell_msg,

View File

@ -693,7 +693,7 @@ void edit_redraw(const filestruct *old_current, size_t old_pww);
void edit_refresh(void); void edit_refresh(void);
void edit_update(topmidnone location); void edit_update(topmidnone location);
int do_yesno(bool all, const char *msg); int do_yesno(bool all, const char *msg);
void total_update(void); void total_redraw(void);
void total_refresh(void); void total_refresh(void);
void display_main_list(void); void display_main_list(void);
void do_cursorpos(bool constant); void do_cursorpos(bool constant);

View File

@ -3664,7 +3664,7 @@ int do_yesno(bool all, const char *msg)
kbinput = get_kbinput(edit, &meta_key, &func_key); kbinput = get_kbinput(edit, &meta_key, &func_key);
if (kbinput == NANO_REFRESH_KEY) { if (kbinput == NANO_REFRESH_KEY) {
total_update(); total_redraw();
continue; continue;
} else if (kbinput == NANO_CANCEL_KEY) } else if (kbinput == NANO_CANCEL_KEY)
ok = -1; ok = -1;
@ -3705,7 +3705,7 @@ int do_yesno(bool all, const char *msg)
return ok; return ok;
} }
void total_update(void) void total_redraw(void)
{ {
#ifdef USE_SLANG #ifdef USE_SLANG
/* Slang curses emulation brain damage, part 3: If we just do what /* Slang curses emulation brain damage, part 3: If we just do what
@ -3721,7 +3721,7 @@ void total_update(void)
void total_refresh(void) void total_refresh(void)
{ {
total_update(); total_redraw();
titlebar(NULL); titlebar(NULL);
edit_refresh(); edit_refresh();
bottombars(currshortcut); bottombars(currshortcut);
@ -3905,7 +3905,7 @@ void do_help(void)
} }
if (kbinput == NANO_REFRESH_KEY) if (kbinput == NANO_REFRESH_KEY)
total_update(); total_redraw();
else { else {
if (line == old_line && kbinput != ERR) if (line == old_line && kbinput != ERR)
goto skip_redisplay; goto skip_redisplay;