rename browser_draw() to browser_refresh() for consistency

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3295 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
master
David Lawrence Ramsey 2006-02-10 19:02:30 +00:00
parent d83af2fea7
commit 1f907c7413
3 changed files with 4 additions and 4 deletions

View File

@ -23,7 +23,7 @@ CVS code -
get_prompt_string(), do_prompt(), search_init(), do_replace(),
do_gotolinecolumn(), and do_int_spell_fix. (DLR)
- Move the browser drawing routines to a separate function. New
function browser_draw(); changes to do_browser(). (DLR)
function browser_refresh(); changes to do_browser(). (DLR)
- browser.c:
do_browser()
- Properly set currshortcut back to the file browser shortcut

View File

@ -324,7 +324,7 @@ char *do_browser(char *path, DIR *dir)
if (abort)
break;
browser_draw(&width, longest, selected, filelist, numents);
browser_refresh(&width, longest, selected, filelist, numents);
kbinput = get_kbinput(edit, &meta_key, &func_key);
parse_browser_input(&kbinput, &meta_key, &func_key);
@ -504,7 +504,7 @@ void parse_browser_input(int *kbinput, bool *meta_key, bool *func_key)
* calculate and return. longest is the length of the longest filename,
* and hence the width of each column of the list. selected is the
* filename that is currently selected. */
void browser_draw(int *width, int longest, int selected, char
void browser_refresh(int *width, int longest, int selected, char
**filelist, size_t numents)
{
struct stat st;

View File

@ -142,7 +142,7 @@ char **browser_init(const char *path, int *longest, size_t *numents, DIR
*dir);
char *do_browse_from(const char *inpath);
void parse_browser_input(int *kbinput, bool *meta_key, bool *func_key);
void browser_draw(int *width, int longest, int selected, char
void browser_refresh(int *width, int longest, int selected, char
**filelist, size_t numents);
void striponedir(char *path);
#endif