diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2015-07-08 13:43:32 +0100 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2015-07-08 13:43:32 +0100 |
| commit | f65d41a30aabe328d753deb2edf0ec1d3af03487 (patch) | |
| tree | 7739fbc9cbe50a203ce3997efc9d45cdce50c2b7 /src | |
| parent | bb01b79c780a2922536a247dfaea9938b3592a42 (diff) | |
Fix scrolling down hiding the cursor with scrolloff == 0
Diffstat (limited to 'src')
| -rw-r--r-- | src/window.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/window.cc b/src/window.cc index 24a02cff..5396f662 100644 --- a/src/window.cc +++ b/src/window.cc @@ -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; } |
