summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMateusz Czapliński <czapkofan@gmail.com>2018-10-21 19:31:26 +0200
committerMateusz Czapliński <czapkofan@gmail.com>2018-10-21 19:31:34 +0200
commit23ed84f6074e3b3abfb07f85dd28e39d1785c2e0 (patch)
treeeac32c87d7551244cf1dc0eda4d232aafd7f852d
parentc8c825c4f54da19bcda8103bbe9ea6a02f6a8390 (diff)
fix displaying last line if not ended with newline
-rw-r--r--up.go4
1 files changed, 3 insertions, 1 deletions
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()
}()