Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

%history -g should show line numbers automatically.

  • Loading branch information...
commit 3b27020a16abf9fd99c6505af89f50d149e9e045 1 parent b641eb6
@takluyver authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  IPython/core/history.py
View
1  IPython/core/history.py
@@ -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)
Please sign in to comment.
Something went wrong with that request. Please try again.