preservim / vim-markdown

Markdown Vim Mode
4.69k stars 524 forks source link

Wrong file path parsing in Windows with gx #624

Closed scarbajali closed 1 year ago

scarbajali commented 1 year ago

In Windows:

![newfile](img/newfile.png)
![newfile](img\newfile.png)

If put the cursor in the first line and press gx, the file is not opened. However, if I do the same in the second line, the file is opened.

It looks like there is an issue in the path parsing, as Windows expects \ instead of / for folder separators.