MCPcopy
hub / github.com/qustavo/httplab / newEditor

Function newEditor

ui/editor.go:16–22  ·  view source on GitHub ↗
(ui *UI, g *gocui.Gui, handler gocui.Editor)

Source from the content-addressed store, hash-verified

14}
15
16func newEditor(ui *UI, g *gocui.Gui, handler gocui.Editor) *editor {
17 if handler == nil {
18 handler = gocui.DefaultEditor
19 }
20
21 return &editor{ui, g, handler, false}
22}
23
24func (e *editor) Edit(v *gocui.View, key gocui.Key, ch rune, mod gocui.Modifier) {
25 if ch == '[' && mod == gocui.ModAlt {

Callers 2

LayoutMethod · 0.85
setResponseViewMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected