1
1
mirror of https://github.com/walles/moar.git synced 2024-09-11 12:15:43 +03:00

Add forgotten newline

Before this change, ReprintAfterExit() didn't end its output with a
newline.

Now it does.

Fixes #165
This commit is contained in:
Johan Walles 2023-11-13 13:10:06 +01:00
parent dab644878c
commit f2360746f1

View File

@ -623,7 +623,6 @@ func (p *Pager) StartPaging(screen twin.Screen) {
// "leaving" pager contents on screen after exit.
func (p *Pager) ReprintAfterExit() error {
// Figure out how many screen lines are used by pager contents
renderedScreenLines, _, _ := p.renderScreenLines()
screenLinesCount := len(renderedScreenLines)
@ -636,5 +635,7 @@ func (p *Pager) ReprintAfterExit() error {
if screenLinesCount > 0 {
p.screen.ShowNLines(screenLinesCount)
}
fmt.Println()
return nil
}