From 23ed84f6074e3b3abfb07f85dd28e39d1785c2e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Czapli=C5=84ski?= Date: Sun, 21 Oct 2018 19:31:26 +0200 Subject: fix displaying last line if not ended with newline --- up.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/up.go b/up.go index 9b4c7b9..e89277e 100644 --- a/up.go +++ b/up.go @@ -367,7 +367,8 @@ func (v *BufView) DrawTo(region Region) { x++ } for ; y < region.H; y++ { - endline(0, y) + endline(x, y) + x = 0 } } @@ -585,6 +586,7 @@ func StartSubprocess(command string, stdin *Buf, notify func()) *Subprocess { err = cmd.Wait() if err != nil { fmt.Fprintf(w, "up: %s", err) + log.Printf("Wait returned error: %s", err) } w.Close() }() -- cgit v1.2.3