Fix next_screen_location()

The change to column_at() to consider points on the boundary as
belonging to the left column broke next_screen_location()
This commit is contained in:
Kovid Goyal 2020-08-13 22:47:51 +05:30
parent 3818b5e1c4
commit 448651d2fc
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -377,7 +377,7 @@ def next_screen_location():
if is_full_screen_layout:
return -1
cc = current_column_location()
ans = cc + screen_inline
ans = cc + screen_inline + 1
if cols_per_screen > 1 and 0 < number_of_cols_left() < cols_per_screen:
return -1 # Only blank, dummy pages left
limit = scroll_viewport.paged_content_inline_size() - scroll_viewport.inline_size()