class TextUi::TextBlockChangeCommand

Defined in:

textui/text_editor_commands.cr

Constructors

Instance Method Summary

Instance methods inherited from class TextUi::TextBlockBaseCommand

block block, document(*args, **options)
document(*args, **options, &)
document
, restore_cursor restore_cursor

Constructor methods inherited from class TextUi::TextBlockBaseCommand

new(cursor : TextCursor) new

Instance methods inherited from class TextUi::UndoCommand

merge(_cmd : UndoCommand) : Bool merge, redo : Nil redo, undo : Nil undo

Constructor Detail

def self.new(cursor : TextCursor, mode : Mode) #

This remove a character from a block


[View source]
def self.new(cursor : TextCursor, chr : Char) #

[View source]

Instance Method Detail

def merge(other : TextBlockChangeCommand) #

[View source]
def new_col : Int32 #

[View source]
def new_text : String #

[View source]
def redo : Nil #

[View source]
def text_inserted? : Bool #

[View source]
def undo : Nil #

[View source]