From 242c95bd11dc1fb5c79156771ec7634d981351ae Mon Sep 17 00:00:00 2001 From: Emilio Pozuelo Monfort Date: Wed, 21 Jun 2023 16:24:43 +0200 Subject: check-new-issues: autocomplete r (report) command --- bin/check-new-issues | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'bin') diff --git a/bin/check-new-issues b/bin/check-new-issues index 55e0e3098a..f87ecb7f7f 100755 --- a/bin/check-new-issues +++ b/bin/check-new-issues @@ -719,8 +719,10 @@ def complete_line(text, state): candidates = ' '.split() else: candidates = ['(unimportant)', '(low)', '(medium)', '(high)' ] - #else: - # XXX + elif first == 'r': + if (len(words) == 1 and not being_completed) or \ + (len(words) == 2 and being_completed): + candidates = list(seen_pkgs.keys()) if being_completed: # match options with portion of input -- cgit v1.2.3