Allow copying hyperlink URL to clipboard

This commit is contained in:
Kovid Goyal
2020-09-15 13:23:31 +05:30
parent 437efe5473
commit d60020f5ac
2 changed files with 10 additions and 5 deletions

View File

@@ -122,7 +122,7 @@ def choice(cli_opts: AskCLIOptions, items: List[str]) -> Response:
letter = letter.lower()
idx = text.lower().index(letter)
allowed += letter
print(text[:idx], styled(text[idx], fg=color), text[idx:], sep='', end=' ')
print(text[:idx], styled(text[idx], fg=color), text[idx + 1:], sep='', end=' ')
print()
response = get_key_press(allowed, '')
return {'items': items, 'response': response}