##// 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 170 pattern = "*" + " ".join(args.pattern) + "*"
171 171 else:
172 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 175 print_nums = True
175 176 elif getattr(args, 'limit_specified', False):
176 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