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:
@@ -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
|
||||
|
Reference in New Issue
Block a user