struct

Tui::DiffLine

Inherits Struct / Value / Object

Represents a single line in a diff

Constructors

new(type : Tui::DiffLine::Type, content : String, old_line : Int32 | Nil = nil, new_line : Int32 | Nil = nil)
Source

Instance methods

content
Source
content=(content : String)
Source
new_line
Source
new_line=(new_line : Int32 | Nil)
Source
old_line
Source
old_line=(old_line : Int32 | Nil)
Source
type
Source
type=(type : Type)
Source
word_changes

Word-level changes: array of {start, length, type} for inline highlighting

Source
word_changes=(word_changes : Array(Tuple(Int32, Int32, Type)))

Word-level changes: array of {start, length, type} for inline highlighting

Source

Nested types