feh icon indicating copy to clipboard operation
feh copied to clipboard

--no-recursive works incorrectly

Open yalexwander opened this issue 1 year ago • 0 comments

To make feh actually to not fetch images from subdirectories when using --start-at option, using --no-recursive option is useless.

I use workaround:

modified   src/filelist.c
@@ -273,8 +273,8 @@ void add_file_to_filelist_recursively(char *origpath, unsigned char level)
 					   - this way "feh some_dir" expands to some_dir's contents */
 					if (opt.recursive)
 						add_file_to_filelist_recursively(newfile, FILELIST_CONTINUE);
-					else
-						add_file_to_filelist_recursively(newfile, FILELIST_LAST);
+					/* else */
+					/* 	add_file_to_filelist_recursively(newfile, FILELIST_LAST); */
 
 					free(newfile);
 				}

yalexwander avatar Sep 13 '24 02:09 yalexwander