MCPcopy
hub / github.com/mathaou/termdbms / CreatePopulatedBuffer

Function CreatePopulatedBuffer

viewer/lineedit.go:55–63  ·  view source on GitHub ↗
(m *TuiModel, original *interface{}, str string)

Source from the content-addressed store, hash-verified

53}
54
55func CreatePopulatedBuffer(m *TuiModel, original *interface{}, str string) {
56 PrepareFormatMode(m)
57 m.Data().EditTextBuffer = str
58 m.FormatInput.Original = original
59 m.Format.Text = GetFormattedTextBuffer(m)
60 m.SetViewSlices()
61 m.FormatInput.Model.SetCursor(0)
62 return
63}
64
65func EditEnter(m *TuiModel) {
66 selectedInput := &m.TextInput.Model

Callers 1

HandleClipboardEventsFunction · 0.85

Calls 5

PrepareFormatModeFunction · 0.85
GetFormattedTextBufferFunction · 0.85
DataMethod · 0.80
SetViewSlicesMethod · 0.80
SetCursorMethod · 0.80

Tested by

no test coverage detected