More appropriate message when URLs not found

This commit is contained in:
Kovid Goyal
2018-04-12 07:27:40 +05:30
parent cc910f6b79
commit 805baad9cd

View File

@@ -201,7 +201,9 @@ def run(args, source_file=None):
marked = mark(finditer, line, index_map)
lines.append(marked)
if not index_map:
input(_('No URLs found, press Enter to abort.'))
input(_('No {} found, press Enter to abort.').format(
'URLs' if args.regex is None else 'matches'
))
return
return run_loop(args, lines, index_map)