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:
parent
dab644878c
commit
f2360746f1
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user