From 805baad9cddf09a118db98595d4e1f43962e9d93 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 12 Apr 2018 07:27:40 +0530 Subject: [PATCH] More appropriate message when URLs not found --- kittens/url_hints/main.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kittens/url_hints/main.py b/kittens/url_hints/main.py index aaed2076f..ca5dddf98 100644 --- a/kittens/url_hints/main.py +++ b/kittens/url_hints/main.py @@ -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)