diff options
author | Junegunn Choi <junegunn.c@gmail.com> | 2017-01-23 22:07:18 +0900 |
---|---|---|
committer | Junegunn Choi <junegunn.c@gmail.com> | 2017-01-23 22:07:18 +0900 |
commit | a3244c4892fdf637696f260d39f15ed4c20518e1 (patch) | |
tree | 47e17255960982e0eab404a0ea9b02a3711d50ea /src | |
parent | a5ad8fd3bd66278a1a17629a1f0d69a9461b0b80 (diff) |
Delete every line below the cursor
Diffstat (limited to 'src')
-rw-r--r-- | src/tui/light.go | 4 |
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") |