Method: Console.do_last_command

Defined in:
lib/xiki/console.rb

.do_last_commandObject



267
268
269
270
271
272
273
274
275
276
277
278
279
280
# File 'lib/xiki/console.rb', line 267

def self.do_last_command
  #     Code.open_log_view if Keys.prefix_u

  orig = View.index

  found = self.to_shell_buffer(nil, :no_create=>true)   # If not in shell buffer, go to it

  return View.message("No *console buffer was visible") unless found

  $el.erase_buffer
  $el.comint_previous_input(1)
  self.enter
  View.to_nth orig
end