mirror of
https://github.com/pry/pry.git
synced 2022-11-09 12:35:05 -05:00
closes #710, convert negative arg to positive for cat --ex
This commit is contained in:
parent
24d9e486d7
commit
ba0d052584
1 changed files with 1 additions and 1 deletions
|
@ -59,7 +59,7 @@ class Pry
|
||||||
bt_index = ex.bt_index
|
bt_index = ex.bt_index
|
||||||
ex.inc_bt_index
|
ex.inc_bt_index
|
||||||
else
|
else
|
||||||
bt_index = opts[:ex]
|
bt_index = absolute_index_number(opts[:ex], ex.backtrace.size)
|
||||||
ex.bt_index = bt_index
|
ex.bt_index = bt_index
|
||||||
ex.inc_bt_index
|
ex.inc_bt_index
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue