vim-repl icon indicating copy to clipboard operation
vim-repl copied to clipboard

Improper indenting for IPython version 8

Open shawsa opened this issue 2 years ago • 0 comments

After upgrading IPython (among other things) the plugin was not indenting correctly from time to time.

The issue is in line 230 of the formatpythoncode.py file: if self.version[0] == "7" and self.version != "7.0": I believe this line is intended to check if the IPython version is above 7.0, but it evaluates to false for IPython 8.X.

For me (Python 3.11.4, IPython 8.14.0), using let g:repl_ipython_version = '7.1' fixed the issue.

shawsa avatar Jul 06 '23 23:07 shawsa