WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 543fba3

Browse files
committed
Fix vim insert line bug
1 parent 8d52c44 commit 543fba3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

escape.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ func escapeInsertLines(t *Terminal, msg string) {
211211
rows = 1
212212
}
213213
i := t.scrollBottom
214-
for ; i > t.cursorRow-rows; i-- {
214+
for ; i > t.cursorRow-rows+1; i-- {
215215
t.content.SetRow(i, t.content.Row(i-rows))
216216
}
217217
for ; i >= t.cursorRow; i-- {

0 commit comments

Comments
 (0)