changeset 1966:bce508abfd93

Always scroll to source directory when walking up in list When walking ones directory tree in list mode selecting "..", sometimes the views scrolls to the directory from where you came and sometimes it does not. Attached is a small patch that makes sure the view always scrolls to the directory from where we came. Apparently the problem was that the source directory entry name sometimes is "..", not very informative when searching the new directory contents after an entry with that name, so changed to search after path instead. http://sourceforge.net/tracker/?func=detail&aid=3127409&group_id=222125&atid=1054682
author Joel Klinghed <the_jk@users.sourceforge.net>
date Tue, 08 Mar 2011 20:42:08 +0100
parents 8fc175341a58
children ed02f9ffd7ad
files src/view_dir_list.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/view_dir_list.c	Sat Jan 22 13:08:24 2011 +0100
+++ b/src/view_dir_list.c	Tue Mar 08 20:42:08 2011 +0100
@@ -329,7 +329,7 @@
 		while (work && !found)
 			{
 			FileData *fd = work->data;
-			if (strcmp(old_path, fd->name) == 0) found = fd;
+			if (strcmp(old_path, fd->path) == 0) found = fd;
 			work = work->next;
 			}