Method: VimMate::TerminalsWindow#prev_terminal

Defined in:
lib/vim_mate/terminals_window.rb

#prev_terminalObject

Switch the previous (left) terminal, if there exists one. Otherwise start with again with the last terminal on the right.



104
105
106
107
108
109
110
# File 'lib/vim_mate/terminals_window.rb', line 104

def prev_terminal
  if @gtk_notebook.page > 0
    @gtk_notebook.prev_page
  else
    @gtk_notebook.page = @gtk_notebook.n_pages - 2
  end
end