GPUI.Text.Edit (gpui v0.2.0)

Copy Markdown View Source

An atomic replacement of one half-open text range.

Summary

Functions

Creates an insertion edit at a logical position.

Creates an atomic replacement for a half-open range.

Types

t()

@type t() :: %GPUI.Text.Edit{range: GPUI.Text.Range.t(), text: String.t()}

Functions

insert(position, text)

@spec insert(GPUI.Text.Position.t(), String.t()) :: t()

Creates an insertion edit at a logical position.

new(range, text)

@spec new(GPUI.Text.Range.t(), String.t()) :: t()

Creates an atomic replacement for a half-open range.