class TextEditor::Command::CursorStartWithoutWhitespace
Public Instance Methods
run(*)
click to toggle source
# File lib/text_editor/command/cursor_start_without_whitespace.rb 4 def run(*) 5 index = scan.skip(/\s+/) || 0 6 new_cursor = cursor.move(line, index) 7 window.update(buffer, new_cursor) 8 end