mirror of
https://github.com/zellij-org/zellij.git
synced 2024-12-25 02:06:19 +03:00
fix(vim): properly delete last line
This commit is contained in:
parent
cd5ddd1d29
commit
dfcd3dda58
@ -1156,7 +1156,7 @@ impl vte::Perform for TerminalOutput {
|
||||
let newlines = self.newline_indices.iter().rev();
|
||||
let mut delete_until = self.characters.len();
|
||||
for newline_index in newlines {
|
||||
if newline_index < &self.cursor_position {
|
||||
if newline_index <= &self.cursor_position {
|
||||
break;
|
||||
}
|
||||
delete_until = *newline_index;
|
||||
|
@ -28,5 +28,5 @@ expression: snapshot
|
||||
21 line38
|
||||
22 line39
|
||||
NORMAL testfile.rs unix | utf-8 | rust 40% 17:1
|
||||
"/tmp/testfile.rs" 42L, 285C
|
||||
|
||||
Bye from Mosaic!█
|
||||
|
@ -29,4 +29,4 @@ expression: snapshot
|
||||
21 line38
|
||||
22 line39
|
||||
NORMAL testfile.rs unix | utf-8 | rust 40% 17:1
|
||||
"/tmp/testfile.rs" 42L, 285C
|
||||
|
||||
|
@ -28,5 +28,5 @@ expression: snapshot
|
||||
2 line28
|
||||
3 line29
|
||||
NORMAL testfile.rs unix | utf-8 | rust 61% 26:1
|
||||
"/tmp/testfile.rs" 42L, 285C
|
||||
|
||||
Bye from Mosaic!█
|
||||
|
@ -29,4 +29,4 @@ expression: snapshot
|
||||
2 line28
|
||||
3 line29
|
||||
NORMAL testfile.rs unix | utf-8 | rust 61% 26:1
|
||||
"/tmp/testfile.rs" 42L, 285C
|
||||
|
||||
|
@ -28,5 +28,5 @@ expression: snapshot
|
||||
2 line26
|
||||
3 line27
|
||||
NORMAL testfile.rs unix | utf-8 | rust 57% 24:1
|
||||
"/tmp/testfile.rs" 42L, 285C
|
||||
|
||||
Bye from Mosaic!█
|
||||
|
@ -29,4 +29,4 @@ expression: snapshot
|
||||
2 line26
|
||||
3 line27
|
||||
NORMAL testfile.rs unix | utf-8 | rust 57% 24:1
|
||||
"/tmp/testfile.rs" 42L, 285C
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user