simnalamburt / vim-mundo

:christmas_tree: Vim undo tree visualizer

Home Page:https://simnalamburt.github.io/vim-mundo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't run under vim compiled with python support version 3.12

jjh2811 opened this issue · comments

Hi.
After using vim complied with python 3.12,
vim-mundo couldn't run saying the following error. (You can't reproduce this error if you use vim compiled with python <3.12.)

line   14:
/home/ubuntu/.vim/plugged/vim-mundo/autoload/mundo.py:197: SyntaxWarning: invalid escape sequence '\['
  matches = re.match('^[^\[]* \[([0-9]+)\] .*$', target_line)

and I found out this error could be fixed after modifying the line of mundo.py.
line 197 of mundo.py(Edit):
matches = re.match(r'^[^\[]* \[([0-9]+)\] .*$', target_line)

Hi @jjh2811 thank you! I'll make a note to get this fixed shortly!