diff src/view_dir_tree.c @ 318:b16b9b8979e5

Add a new struct ConfOptions to handle options. Changes were made among the code to use only one global var named "options" of type ConfOptions *. Initialization takes place in new init_options().
author zas_
date Fri, 11 Apr 2008 22:14:36 +0000
parents 9995c5fb202a
children c74af1cbd61a
line wrap: on
line diff
--- a/src/view_dir_tree.c	Fri Apr 11 20:35:37 2008 +0000
+++ b/src/view_dir_tree.c	Fri Apr 11 22:14:36 2008 +0000
@@ -1062,7 +1062,7 @@
 	/* when hidden files are not enabled, and the user enters a hidden path,
 	 * allow the tree to display that path by specifically inserting the hidden entries
 	 */
-	if (!show_dot_files &&
+	if (!options->show_dot_files &&
 	    target_path &&
 	    strncmp(nd->fd->path, target_path, strlen(nd->fd->path)) == 0)
 		{