Permalink
Browse files

%history -g should show line numbers automatically.

  • Loading branch information...
1 parent b641eb6 commit 3b27020a16abf9fd99c6505af89f50d149e9e045 @takluyver committed Jul 21, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 IPython/core/history.py
View
@@ -650,6 +650,7 @@ def _format_lineno(session, line):
if 'g' in opts: # Glob search
pattern = "*" + args + "*" if args else "*"
hist = history_manager.search(pattern, raw=raw, output=get_output)
+ print_nums = True
elif 'l' in opts: # Get 'tail'
try:
n = int(args)

0 comments on commit 3b27020

Please sign in to comment.