sillybun / vim-repl

Best REPL environment for Vim
GNU General Public License v2.0
446 stars 39 forks source link

Fix for Issue148 - IPython version 8+ #149

Closed shawsa closed 9 months ago

shawsa commented 1 year ago

This should fix the problem for IPython 8.X at least.

I've created a Version class in pythonx/formatpythoncode.py that parses a version string and has convenient comparison functionality. It makes the logic more readable and functions properly for IPython versions greater than version 7.

While fixing this issue I noticed there was a line of code in repl.vim that truncates the version string. I have IPython version 8.14.0, but it was reading it as version 8.1. I'm not sure why this is done, but I've removed it and I don't think anything broke (for me at least).