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

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

Closed jjh2811 closed 7 months ago

jjh2811 commented 9 months ago

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)

dsummersl commented 9 months ago

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