MCPcopy
hub / github.com/dzhou121/gonvim / queueRedraw

Method queueRedraw

editor/screen.go:535–548  ·  view source on GitHub ↗
(x, y, width, height int)

Source from the content-addressed store, hash-verified

533}
534
535func (s *Screen) queueRedraw(x, y, width, height int) {
536 if x < s.queueRedrawArea[0] {
537 s.queueRedrawArea[0] = x
538 }
539 if y < s.queueRedrawArea[1] {
540 s.queueRedrawArea[1] = y
541 }
542 if (x + width) > s.queueRedrawArea[2] {
543 s.queueRedrawArea[2] = x + width
544 }
545 if (y + height) > s.queueRedrawArea[3] {
546 s.queueRedrawArea[3] = y + height
547 }
548}
549
550func (s *Screen) posWin(x, y int) *Window {
551 for _, win := range s.curWins {

Callers 3

eolClearMethod · 0.95
putMethod · 0.95
scrollMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected