You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When scrolloff vim variable set, the cursor control codes 'H' and 'L' doesn't move cursor to the top and bottom lines of the screen. I suggest small minimap.py fix for this case
# Save scrolloff value and set it to 0
+ so = vim.eval("&scrolloff")
+ vim.command(":set scrolloff=0")
vim.command("normal! H")
topline = src.cursor[0]
vim.command("normal! L")
bottomline = src.cursor[0]
...
# Restore scrolloff
src.cursor = cursor
+ vim.command(":set scrolloff=%s" % so)
The text was updated successfully, but these errors were encountered:
When scrolloff vim variable set, the cursor control codes 'H' and 'L' doesn't move cursor to the top and bottom lines of the screen. I suggest small minimap.py fix for this case
The text was updated successfully, but these errors were encountered: