Permalink
Browse files

closes #710, convert negative arg to positive for cat --ex

  • Loading branch information...
1 parent 24d9e48 commit ba0d05258445ad7d519553d974753684a2ea808e @banister banister committed Oct 1, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/pry/commands/cat.rb
@@ -59,7 +59,7 @@ def process_ex
bt_index = ex.bt_index
ex.inc_bt_index
else
- bt_index = opts[:ex]
+ bt_index = absolute_index_number(opts[:ex], ex.backtrace.size)
ex.bt_index = bt_index
ex.inc_bt_index
end

0 comments on commit ba0d052

Please sign in to comment.