forked from aniani/vim
patch 9.0.1367: divide by zero in zero-width window
Problem: Divide by zero in zero-width window. Solution: Check the width is positive.
This commit is contained in:
@@ -1734,7 +1734,7 @@ scrolldown(
|
||||
col -= width1;
|
||||
++row;
|
||||
}
|
||||
if (col > width2)
|
||||
if (col > width2 && width2 > 0)
|
||||
{
|
||||
row += col / width2;
|
||||
col = col % width2;
|
||||
|
||||
Reference in New Issue
Block a user