simnalamburt / vim-mundo

:christmas_tree: Vim undo tree visualizer
https://simnalamburt.github.io/vim-mundo
GNU General Public License v2.0
791 stars 28 forks source link

Error when pressing ? if g:mundo_help is enabled #114

Closed arp242 closed 2 years ago

arp242 commented 3 years ago

When you set g:mundo_help pressing ? errors out:

:let g:mundo_help=1
:MundoToggle
:normal ?
Error detected while processing function <SNR>60_MundoPython[1]..function <SNR>60_MundoPython:
line    1:
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/martin/.cache/vim/pack/plugins/start/vim-mundo/autoload/mundo.py", line 460, in MundoToggleHelp
    vim.command(
vim.error: Vim(call):E475: Invalid argument: -8

It does hide the help though, and subsequent ? presses work as expected.

vim 8.2.3156 with Python 3.9.6 on Linux.

arp242 commented 3 years ago

Somewhat related issue: by default mundo doesn't allow you to scroll in the "header", but if you set both:

let g:mundo_help = 1
let g:mundo_header = 0

Then mundo won't allow you to scroll all the way up.

Edit: actually, that's not an issue with just that setting, just setting the header to 0 and then pressing ? gives you the same.

simnalamburt commented 2 years ago

Cannot reproduce this issue, considering it as fixed.