class Fir::CtrlECommand

Public Class Methods

character_regex() click to toggle source
# File lib/fir/key_command/ctrl_e_command.rb, line 8
def self.character_regex
  /^\x05$/
end

Public Instance Methods

execute_hook(new_state) click to toggle source
# File lib/fir/key_command/ctrl_e_command.rb, line 12
def execute_hook(new_state)
  unless state.blank?
    new_state.cursor = state.cursor.right(state.current_line.length - state.cursor.x)
  end
  new_state
end