lib/shellplay/session.rb in shellplay-0.0.6 vs lib/shellplay/session.rb in shellplay-0.0.7

- old
+ new

@@ -36,14 +36,18 @@ @sequence << s end def drop_last_screen @sequence.pop - @pointer -= 1 + previous end def next @pointer += 1 + end + + def previous + @pointer -= 1 end def show(index) @pointer = index.to_i current_screen