struct
TermBuf::Completion::Request
- TermBuf::Completion::Request
- Struct
- Value
- Object
Overview
What is being completed. Indices are cluster indices into the line, the
same ones LineBuffer counts in.
Defined in:
termbuf/widgets/completion.crConstructors
Instance Method Summary
- #clone
- #copy_with(text _text = @text, cursor _cursor = @cursor, word _word = @word, range _range = @range)
-
#cursor : Int32
Where the cursor is.
-
#range : Range(Int32, Int32)
Where that word sits, which is what a
Resultreplaces by default. -
#text : String
The whole line, since a completion often depends on what came before.
-
#word : String
The word the field thinks is being completed.
Constructor Detail
def self.new(text : String, cursor : Int32, word : String, range : Range(Int32, Int32))
#
Instance Method Detail
def copy_with(text _text = @text, cursor _cursor = @cursor, word _word = @word, range _range = @range)
#