1
0
forked from aniani/vim

patch 8.2.4031: crash in xterm with only two lines

Problem:    Crash in xterm with only two lines. (Dominique Pellé)
Solution:   Only perform xterm compatibility test if possible. (closes #9488)
This commit is contained in:
Bram Moolenaar
2022-01-07 19:24:20 +00:00
parent 71f21938bc
commit d1f34e64f0
3 changed files with 14 additions and 1 deletions

View File

@@ -3801,7 +3801,7 @@ check_terminal_behavior(void)
line_was_clobbered(1);
}
if (xcc_status.tr_progress == STATUS_GET)
if (xcc_status.tr_progress == STATUS_GET && Rows > 2)
{
// 2. Check compatibility with xterm.
// We move the cursor to (2, 0), print a test sequence and then query