Skip to content
Myr

Remove unnecessary SCP (Save Cursor Position)

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

It is reported that it can have an unwanted side effect of clearing the screen on terminal emulators that do not properly support it. Patch suggested by @arya. Close #1011

authored by Junegunn Choi · committed by Junegunn Choi · parent 462c68b · Browse files · 1 file+3 added−1 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+3 added−1 removed

  • other:+3 added−1 removed

1 file+3 added−1 removed

modified:src/tui/light.go+3 added-1 removed
207 unmodified lines
208 }209 r.csi(fmt.Sprintf("%dA", r.MaxY()-1))210 r.csi("G")211 r.csi("K")212 if !r.clearOnExit && !r.fullscreen {212 r.csi("s")213 r.csi("s")214 }215 if !r.fullscreen && r.mouse {216 r.yoffset, _ = r.findOffset()217 }218}
687 unmodified lines