~q3cpma/sxiv-manga-reader

5b1f78f4d7f77cfe41ef35c7354a95dead7b9a46 — q3cpma 1 year, 11 months ago 62acd57
Sync natsort and skip directories without images
2 files changed, 11 insertions(+), 2 deletions(-)

M natsort/array.h
M sxiv-manga-reader
M natsort/array.h => natsort/array.h +3 -2
@@ 117,7 117,8 @@
#define PTR_GARRAY_FREE(a, free)										\
	do																	\
	{																	\
		for (size_t GENSYM(0) = 0; GENSYM(0) < GARRAY_SIZE(a) - 1; ++GENSYM(0)) \
	        free((a)[GENSYM(0)]);										\
		for (size_t GENSYM(0) = 0; GENSYM(0) < GARRAY_SIZE(a); ++GENSYM(0)) \
			free((a)[GENSYM(0)]);										\
		GARRAY_FREE(a);													\
	}																	\
	while (0)

M sxiv-manga-reader => sxiv-manga-reader +8 -0
@@ 74,6 74,14 @@ view()
				start=$resume_page || start=1
			;;
	esac
	if ! [ "$list" ]
	then
		case "$2" in
			"Start reached"|"End reached") pecho "$2";;
			"Initial") pecho "End reached";;
		esac
		return
	fi
	pecho "$list" | "$nsxiv" -n$start $nsxiv_opts - || true
}