Skip to content
Myr

Fix regression where lines are skipped in the preview window

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

Fix #2239

authored by Junegunn Choi · committed by Junegunn Choi · parent 15d351b · Browse files · 2 files+6 added−0 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+6 added−0 removed

  • other:+6 added−0 removed

2 files+6 added−0 removed

modified:src/terminal.go+2 added
1252 unmodified lines
1253 t.pwindow.Erase()1254 }1255 var ansi *ansiState1256 for _, line := range t.previewer.lines {1257 line = strings.TrimSuffix(line, "\n")1258 if lineNo >= height || t.pwindow.Y() == height-1 && t.pwindow.X() > 0 {1259 t.previewed.filled = true1260 break1261 } else if lineNo >= 0 {
22 unmodified lines
1284 }1285 if unchanged && lineNo == 0 {1286 break1287 }1288 t.pwindow.Fill("\n")1289 }1290 lineNo++1291 }1292 if !unchanged {
1296 unmodified lines
modified:CHANGELOG.md+4 added
1CHANGELOG2=========340.24.25------6- Bug fixes and improvements780.24.19------10- Fixed broken `--color=[bw|no]` option11
1002 unmodified lines