mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2024-12-23 19:39:07 +00:00
Delete every line below the cursor
This commit is contained in:
parent
a5ad8fd3bd
commit
a3244c4892
@ -184,6 +184,7 @@ func (r *LightRenderer) Init() {
|
|||||||
if r.fullscreen {
|
if r.fullscreen {
|
||||||
r.smcup()
|
r.smcup()
|
||||||
} else {
|
} else {
|
||||||
|
r.csi("J")
|
||||||
y, x := r.findOffset()
|
y, x := r.findOffset()
|
||||||
r.mouse = r.mouse && y >= 0
|
r.mouse = r.mouse && y >= 0
|
||||||
if x > 0 {
|
if x > 0 {
|
||||||
@ -210,7 +211,6 @@ func (r *LightRenderer) Init() {
|
|||||||
func (r *LightRenderer) makeSpace() {
|
func (r *LightRenderer) makeSpace() {
|
||||||
r.stderr("\n")
|
r.stderr("\n")
|
||||||
r.csi("G")
|
r.csi("G")
|
||||||
r.csi("K")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (r *LightRenderer) move(y int, x int) {
|
func (r *LightRenderer) move(y int, x int) {
|
||||||
@ -569,10 +569,10 @@ func (r *LightRenderer) Close() {
|
|||||||
r.rmcup()
|
r.rmcup()
|
||||||
} else {
|
} else {
|
||||||
r.origin()
|
r.origin()
|
||||||
r.csi("J")
|
|
||||||
if r.upOneLine {
|
if r.upOneLine {
|
||||||
r.csi("A")
|
r.csi("A")
|
||||||
}
|
}
|
||||||
|
r.csi("J")
|
||||||
}
|
}
|
||||||
if r.mouse {
|
if r.mouse {
|
||||||
r.csi("?1000l")
|
r.csi("?1000l")
|
||||||
|
Loading…
Reference in New Issue
Block a user