dragon/console_prompt.rb
# ? Can be changed, it was just taken from my editor settings :>
? Can be changed, it was just taken from my editor settings :>
? Can be changed it was just taken from my editor settings : >
def move_cursor_left_word
        return if @cursor_position.zero?
        new_pos = @cursor_position - 1
        (is_word_boundary? @current_input_str[new_pos]) ? 
            (new_pos -= 1 until !(is_word_boundary? @current_input_str[new_pos - 1]) || new_pos.zero?):
            (new_pos -= 1 until (is_word_boundary? @current_input_str[new_pos - 1]) || new_pos.zero?)
        @cursor_position = new_pos
        update_cursor_position_px
      end
def move_cursor_left_word return if @cursor_position . zero? new_pos = @cursor_position - 1 ( is_word_boundary? @current_input_str [ new_pos ] ) ? ( new_pos -= 1 until ! ( is_word_boundary? @current_input_str [ new_pos - 1 ] ) || new_pos . zero? ) : ( new_pos -= 1 until ( is_word_boundary? @current_input_str [ new_pos - 1 ] ) || new_pos . zero? ) @cursor_position = new_pos update_cursor_position_px end
?
?