nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit 1f907c7413d860bd997afb5ece7755d82cf1ed0c
parent d83af2fea76f0e4880aa5292b9951d735987641e
Author: David Lawrence Ramsey <pooka109@gmail.com>
Date:   Fri, 10 Feb 2006 19:02:30 +0000

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

Diffstat:
MChangeLog | 2+-
Msrc/browser.c | 4++--
Msrc/proto.h | 2+-
3 files changed, 4 insertions(+), 4 deletions(-)

diff --git 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 @@ -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 @@ -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