spyder-ide / spyder-vim

A plugin for Spyder to enable Vim keybindings
https://www.spyder-ide.org
MIT License
126 stars 26 forks source link

Pasting before yanking crashes Spyder #94

Open webberl opened 10 months ago

webberl commented 10 months ago

Just installed this plugin, and was just testing mindlessly when I encountered this issue. Steps to reproduce the problem and the traceback log are below.

While I understand it is obvious, but I also tried yanking before pasting, which does not reproduce the same issue.

What steps will reproduce the problem?

  1. start spyder
  2. select vim command bar
  3. type 'p' (without the quotes)

Traceback log

Traceback (most recent call last):
  File "C:\ProgramData\anaconda3\Lib\site-packages\spyder_vim\spyder\widgets.py", line 1609, in on_text_changed
    self.vim_keys(key, repeat)
  File "C:\ProgramData\anaconda3\Lib\site-packages\spyder_vim\spyder\widgets.py", line 101, in __call__
    method(repeat=repeat)
  File "C:\ProgramData\anaconda3\Lib\site-packages\spyder_vim\spyder\widgets.py", line 1138, in p
    self.P()
TypeError: VimKeys.P() missing 1 required positional argument: 'repeat'

Spyder version info