mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-06-26 19:01:27 +00:00
More appropriate message when URLs not found
This commit is contained in:
parent
cc910f6b79
commit
805baad9cd
1 changed files with 3 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue