(ui *UI, g *gocui.Gui, handler gocui.Editor)
| 14 | } |
| 15 | |
| 16 | func 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 | |
| 24 | func (e *editor) Edit(v *gocui.View, key gocui.Key, ch rune, mod gocui.Modifier) { |
| 25 | if ch == '[' && mod == gocui.ModAlt { |
no outgoing calls
no test coverage detected