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

Method clearViewLines

pkg/gocui/view.go:203–207  ·  view source on GitHub ↗

call this in the event of a view resize, or if you want to render new content without the chance of old content still appearing, or if you want to remove a line from the existing content

()

Source from the content-addressed store, hash-verified

201// without the chance of old content still appearing, or if you want to remove
202// a line from the existing content
203func (v *View) clearViewLines() {
204 v.tainted = true
205 v.viewLines = nil
206 v.clearHover()
207}
208
209type searcher struct {
210 searchString string

Callers 5

SetViewMethod · 0.95
clearMethod · 0.95
FlushStaleCellsMethod · 0.95
overwriteLinesMethod · 0.95
flushMethod · 0.80

Calls 1

clearHoverMethod · 0.95

Tested by

no test coverage detected