##// END OF EJS Templates
Limit option -l for %history can be used with -g now
Takafumi Arakaki -
Show More
@@ -170,7 +170,8 b' class HistoryMagics(Magics):'
170 pattern = "*" + " ".join(args.pattern) + "*"
170 pattern = "*" + " ".join(args.pattern) + "*"
171 else:
171 else:
172 pattern = "*"
172 pattern = "*"
173 hist = history_manager.search(pattern, raw=raw, output=get_output)
173 hist = history_manager.search(pattern, raw=raw, output=get_output,
174 n=args.limit)
174 print_nums = True
175 print_nums = True
175 elif getattr(args, 'limit_specified', False):
176 elif getattr(args, 'limit_specified', False):
176 n = 10 if args.limit is None else args.limit
177 n = 10 if args.limit is None else args.limit
General Comments 0
You need to be logged in to leave comments. Login now