diff options
author | Todd Leonhardt <todd.leonhardt@gmail.com> | 2018-01-15 00:27:06 -0500 |
---|---|---|
committer | Todd Leonhardt <todd.leonhardt@gmail.com> | 2018-01-15 00:27:06 -0500 |
commit | 07e37b2d081161af32feb64890b1fd4236bf5f13 (patch) | |
tree | 94347c7773a77a637db399f1e98bf570b67a95ce /cmd2.py | |
parent | ddac998671ed64c07af87feab7f3fd568bc76ce7 (diff) | |
download | cmd2-git-07e37b2d081161af32feb64890b1fd4236bf5f13.tar.gz |
Fixed do_history unit tests and implementation
Diffstat (limited to 'cmd2.py')
-rwxr-xr-x | cmd2.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1679,7 +1679,7 @@ arg is /regex/ matching regular expression regex""" @with_argument_parser(argparser) def do_history(self, arglist, args): # If an argument was supplied, then retrieve partial contents of the history - if arglist: + if args.arg: # If a character indicating a slice is present, retrieve a slice of the history arg = args.arg[0] if '..' in arg or ':' in arg: |