summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2017-01-23 22:07:18 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2017-01-23 22:07:18 +0900
commita3244c4892fdf637696f260d39f15ed4c20518e1 (patch)
tree47e17255960982e0eab404a0ea9b02a3711d50ea
parenta5ad8fd3bd66278a1a17629a1f0d69a9461b0b80 (diff)
Delete every line below the cursor
-rw-r--r--src/tui/light.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tui/light.go b/src/tui/light.go
index 6fcb4d5b..b1413680 100644
--- a/src/tui/light.go
+++ b/src/tui/light.go
@@ -184,6 +184,7 @@ func (r *LightRenderer) Init() {
if r.fullscreen {
r.smcup()
} else {
+ r.csi("J")
y, x := r.findOffset()
r.mouse = r.mouse && y >= 0
if x > 0 {
@@ -210,7 +211,6 @@ func (r *LightRenderer) Init() {
func (r *LightRenderer) makeSpace() {
r.stderr("\n")
r.csi("G")
- r.csi("K")
}
func (r *LightRenderer) move(y int, x int) {
@@ -569,10 +569,10 @@ func (r *LightRenderer) Close() {
r.rmcup()
} else {
r.origin()
- r.csi("J")
if r.upOneLine {
r.csi("A")
}
+ r.csi("J")
}
if r.mouse {
r.csi("?1000l")