Fix scrolling down hiding the cursor with scrolloff == 0

This commit is contained in:
Maxime Coste 2015-07-08 13:43:32 +01:00
parent bb01b79c78
commit f65d41a30a

View File

@ -133,7 +133,7 @@ static LineCount adapt_view_pos(LineCount line, LineCount offset,
if (line - offset < view_pos)
return std::max(0_line, line - offset);
else if (line + offset >= view_pos + view_size)
return std::max(0_line, line + offset - view_size);
return std::max(0_line, line + offset - view_size + 1);
return view_pos;
}