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

Function ExitToDefaultView

viewer/lineedit.go:28–43  ·  view source on GitHub ↗
(m *TuiModel)

Source from the content-addressed store, hash-verified

26}
27
28func ExitToDefaultView(m *TuiModel) {
29 m.UI.RenderSelection = false
30 m.UI.EditModeEnabled = false
31 m.UI.FormatModeEnabled = false
32 m.UI.SQLEdit = false
33 m.UI.ShowClipboard = false
34 m.UI.CanFormatScroll = false
35 m.Format.CursorY = 0
36 m.Format.CursorX = 0
37 m.Format.EditSlices = nil
38 m.Format.Text = nil
39 m.Format.RunningOffsets = nil
40 m.FormatInput.Model.Reset()
41 m.TextInput.Model.Reset()
42 m.Viewport.YOffset = 0
43}
44
45func CreateEmptyBuffer(m *TuiModel, original *interface{}) {
46 PrepareFormatMode(m)

Callers 3

EditEnterFunction · 0.85
handleSQLModeFunction · 0.85
HandleClipboardEventsFunction · 0.85

Calls 1

ResetMethod · 0.80

Tested by

no test coverage detected