mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-28 11:11:47 +02:00
More appropriate message when URLs not found
This commit is contained in:
@@ -201,7 +201,9 @@ def run(args, source_file=None):
|
|||||||
marked = mark(finditer, line, index_map)
|
marked = mark(finditer, line, index_map)
|
||||||
lines.append(marked)
|
lines.append(marked)
|
||||||
if not index_map:
|
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
|
||||||
|
|
||||||
return run_loop(args, lines, index_map)
|
return run_loop(args, lines, index_map)
|
||||||
|
|||||||
Reference in New Issue
Block a user