Method: AuthorEngine::CodeEditor::Cursor#set_position
- Defined in:
- lib/author_engine/code_editor/cursor.rb
#set_position(int) ⇒ Object
290 291 292 293 |
# File 'lib/author_engine/code_editor/cursor.rb', line 290 def set_position(int) @text_input.caret_pos = int @text_input.selection_start = int # See: https://github.com/gosu/gosu/issues/228 end |