1
0
Fork 0
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:
John Mair 2012-10-02 00:09:06 +13:00
parent 24d9e486d7
commit ba0d052584

View file

@ -59,7 +59,7 @@ class Pry
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