Skip to content

Commit

Permalink
Merge pull request longld#17 from bvanheu/master
Browse files Browse the repository at this point in the history
Fixed a bug when calling context_code without linecount (default to 8)
  • Loading branch information
danghvu committed Nov 18, 2013
2 parents 76ce2a4 + 0b8748b commit 35884e3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions peda.py
Original file line number Diff line number Diff line change
Expand Up @@ -4190,6 +4190,9 @@ def context_code(self, *arg):
"""
(count,) = normalize_argv(arg, 1)

if count is None:
count = 8

if not self._is_running():
return

Expand Down

0 comments on commit 35884e3

Please sign in to comment.