Minga.Editing.Search.Match (Minga v0.1.0)

Copy Markdown View Source

A search match: a pattern occurrence at a specific buffer position.

Replaces the raw {line, col, length} tuple that previously crossed module boundaries between Search, Renderer, ContentHelpers, and Agent.UIState.

Summary

Functions

Creates a match from positional values.

Types

t()

@type t() :: %Minga.Editing.Search.Match{
  col: non_neg_integer(),
  length: non_neg_integer(),
  line: non_neg_integer()
}

Functions

new(line, col, length)

Creates a match from positional values.