Skip to content
Myr

Better fix for #4465 - remove unnecessary erase

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

authored by Junegunn Choi · committed by Junegunn Choi · parent 7941129 · Browse files · 2 files+9 added−2 removed
This commit

State

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

Diff stats

2 files+9 added−2 removed

  • other:+9 added−2 removed

2 files+9 added−2 removed

modified:src/tui/tui.go+1 added-1 removed
503 unmodified lines
504505func MakeBorderStyle(shape BorderShape, unicode bool) BorderStyle {506 if shape == BorderNone || shape == BorderPhantom {507 return BorderStyle{508 shape: BorderRounded,508 shape: BorderNone,509 top: ' ',510 bottom: ' ',511 left: ' ',512 right: ' ',
641 unmodified lines
modified:src/terminal.go+8 added-1 removed
2289 unmodified lines
2290 t.window = t.tui.NewWindow(2291 innerMarginInt[0]+shift, innerMarginInt[3]+pwidth+m, innerWidth-pwidth-m, innerHeight-shrink, tui.WindowList, noBorder, true)22922293 // Clear characters on the margin2294 // fzf --bind 'space:preview(seq 100)' --preview-window left,12294 // fzf --bind 'space:toggle-preview' --preview ':' --preview-window left,12295 if !hasListBorder {2296 for y := 0; y < innerHeight; y++ {2297 t.window.Move(y, -1)2298 t.window.Print(" ")2299 }2300 }2301 // fzf --bind 'space:toggle-preview' --preview ':' --preview-window left,1,border-none2302 if !previewOpts.Border().HasRight() {2303 for y := 0; y < innerHeight; y++ {2304 t.window.Move(y, -2)2305 t.window.Print(" ")2306 }2307 }23082309 innerBorderFn(marginInt[0], marginInt[3]+pwidth, width-pwidth, height)2310 createPreviewWindow(marginInt[0], marginInt[3], pwidth, height)2311 } else {
4672 unmodified lines