Skip to content
Myr

Fix line wrap toggle when switching between screens

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Fix #4099

authored by Junegunn Choi · committed by Junegunn Choi · parent 3e6e052 · Browse files · 1 file+9 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+9 added−3 removed

  • other:+9 added−3 removed

1 file+9 added−3 removed

modified:src/tui/light.go+9 added-3 removed
71 unmodified lines
72}7374func (r *LightRenderer) flush() {75 if r.queued.Len() > 0 {76 fmt.Fprint(r.ttyout, "\x1b[?7l\x1b[?25l"+r.queued.String()+"\x1b[?25h\x1b[?7h")76 r.flushRaw("\x1b[?7l\x1b[?25l" + r.queued.String() + "\x1b[?25h\x1b[?7h")77 r.queued.Reset()78 }79}8081func (r *LightRenderer) flushRaw(sequence string) {82 fmt.Fprint(r.ttyout, sequence)83}8485// Light renderer86type LightRenderer struct {87 closed *util.AtomicBool88 theme *ColorTheme
569 unmodified lines
658 return Event{Mouse, 0, &MouseEvent{y, x, 0, left, down, double, mod}}659}660661func (r *LightRenderer) smcup() {658 r.csi("?1049h")662 r.flush()663 r.flushRaw("\x1b[?1049h")664}665666func (r *LightRenderer) rmcup() {662 r.csi("?1049l")667 r.flush()668 r.flushRaw("\x1b[?1049l")669}670671func (r *LightRenderer) Pause(clear bool) {672 r.disableMouse()
502 unmodified lines