From 4ca0f663a918fc04389ff4351b596209902bd11c Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 3 Oct 2008 11:56:00 +0200 Subject: list_window: remove list_window_state_t We do not need to save a stack of list window states. When we return to a parent directory, we just have to find the directory which we come from in the parent list. Note that this patch resets the cursor when going to the root directory, but I think it's not that important, and I will deal with that later. --- src/screen_file.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/screen_file.c') diff --git a/src/screen_file.c b/src/screen_file.c index 95510a516..1ba96403a 100644 --- a/src/screen_file.c +++ b/src/screen_file.c @@ -143,7 +143,6 @@ static void browse_init(WINDOW *w, int cols, int rows) { browser.lw = list_window_init(w, cols, rows); - browser.lw_state = list_window_init_state(); } static void @@ -159,7 +158,6 @@ browse_exit(void) if (browser.filelist) filelist_free(browser.filelist); list_window_free(browser.lw); - list_window_free_state(browser.lw_state); } static void -- cgit v1.2.3