Add search args to history

This commit is contained in:
Arun Prakash Jana 2017-06-16 19:59:47 +05:30
parent 6abfea2e33
commit 851711a78e
No known key found for this signature in database
GPG Key ID: A75979F35C080412

View File

@ -3090,6 +3090,13 @@ POSITIONAL ARGUMENTS:
else:
search_opted = False
# Add cmdline search options to readline history
if search_opted and args.keywords:
try:
readline.add_history(' '.join(args.keywords))
except Exception:
pass
if search_results:
oneshot = args.np
to_delete = False