From 1f907c7413d860bd997afb5ece7755d82cf1ed0c Mon Sep 17 00:00:00 2001 From: David Lawrence Ramsey Date: Fri, 10 Feb 2006 19:02:30 +0000 Subject: [PATCH] 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 --- ChangeLog | 2 +- src/browser.c | 4 ++-- src/proto.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index c9e5afe5..3c9463c6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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 diff --git a/src/browser.c b/src/browser.c index ff8c8b30..a493506c 100644 --- a/src/browser.c +++ b/src/browser.c @@ -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; diff --git a/src/proto.h b/src/proto.h index f7db9540..08a998f5 100644 --- a/src/proto.h +++ b/src/proto.h @@ -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 -- 2.39.5