MCPcopy
hub / github.com/jesseduffield/lazygit / wrapEditor

Method wrapEditor

pkg/integration/clients/tui.go:250–258  ·  view source on GitHub ↗
(f func(v *gocui.View, key gocui.Key) bool)

Source from the content-addressed store, hash-verified

248}
249
250func (self *app) wrapEditor(f func(v *gocui.View, key gocui.Key) bool) func(v *gocui.View, key gocui.Key) bool {
251 return func(v *gocui.View, key gocui.Key) bool {
252 matched := f(v, key)
253 if matched {
254 self.filterWithString(v.TextArea.GetContent())
255 }
256 return matched
257 }
258}
259
260func suspendAndRunTest(test *components.IntegrationTest, sandbox bool, waitForDebugger bool, raceDetector bool, inputDelay int) {
261 if err := gocui.Screen.Suspend(); err != nil {

Callers 1

layoutMethod · 0.95

Calls 2

filterWithStringMethod · 0.95
GetContentMethod · 0.45

Tested by

no test coverage detected