Skip to content
Myr

Clear lines even when background color is not set

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

Also revert the workaround in Vim plugin introduced in fa7c897.

authored by Junegunn Choi · committed by Junegunn Choi · parent 5130abe · Browse files · 2 files+10 added−4 removed
This commit

State

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

Trailers

  • Related: #814

Diff stats

2 files+10 added−4 removed

  • other:+10 added−4 removed

2 files+10 added−4 removed

modified:plugin/fzf.vim+1 added-1 removed
428 unmodified lines
429 let command = escaped430 endif431 if a:use_height432 let stdin = has_key(a:dict, 'source') ? '' : '< /dev/tty'433 call system(printf('tput cup %d > /dev/tty; tput cnorm > /dev/tty; tput el > /dev/tty; %s %s 2> /dev/tty', &lines, command, stdin))433 call system(printf('tput cup %d > /dev/tty; tput cnorm > /dev/tty; %s %s 2> /dev/tty', &lines, command, stdin))434 else435 execute 'silent !'.command436 endif437 let exit_status = v:shell_error
223 unmodified lines
modified:src/tui/light.go+9 added-3 removed
183 unmodified lines
184185 _, x := r.findOffset()186 if x > 0 {187 r.upOneLine = true188 r.stderr("\n")188 r.makeSpace()189 }190 for i := 1; i < r.MaxY(); i++ {191 r.stderr("\n")192 r.csi("G")191 r.makeSpace()192 }193194 if r.mouse {195 r.csi("?1000h")196 }197 r.csi(fmt.Sprintf("%dA", r.MaxY()-1))198 r.csi("G")199 r.csi("K")200 // r.csi("s")201 if r.mouse {202 r.yoffset, _ = r.findOffset()203 }204}205206func (r *LightRenderer) makeSpace() {207 r.stderr("\n")208 r.csi("G")209 r.csi("K")210}211212func (r *LightRenderer) move(y int, x int) {213 // w.csi("u")214 if r.y < y {215 r.csi(fmt.Sprintf("%dB", y-r.y))
611 unmodified lines