~acdw/bollux

b5e61bcf2f58fe5041cee2b7a848378a4297c9ea — Case Duckworth a month ago 89fc98d
Reload page if no links
1 files changed, 5 insertions(+), 0 deletions(-)

M bollux
M bollux => bollux +5 -0
@@ 923,6 923,11 @@ handle_keypress() { # handle_keypress CODE
# select a URL from a text/gemini file
select_url() { # select_url FILE
	run mapfile -t < <(extract_links <"$1")
	if ((${#MAPFILE[@]} == 0)); then
		log e "No links on this page!"
		sleep 0.5
		run blastoff "$BOLLUX_URL"
	fi
	PS3="OPEN> "
	select u in "${MAPFILE[@]}"; do
		case "$REPLY" in