Closed cristobaltapia closed 9 years ago
The current version works as expected. In Tex_GetTempName, (main.vim:561), a slash is inserted anyway, see line 563. Can you check why that does not work for you?
I will look at it again tomorrow on my work. I have tested it now in my computer running arch linux and it works OK.
So I don't understand exactly why, but the regex that is supposed to match the '/' or '\' at the end of the line ('\\\|/$'
) does not work in my computer. I changed it to '[\\\/]$'
and it works. Strange.
Maybe the interpretation of the regexp depends on the magic setting :help magic
?
I think there is nothing wrong with the magic setting. The problem is that the regexp '\\\|/$'
only matches the '/'
at the end of the line, while detecting any '\'
(not only at the end of the line). Thus, as a path in windows will always have '\'
(backslash) it will always return 1
and no slash will be appended. The last regexp I submitted is a small modification of the original and should work always.
Yes, that is the solution. Can you merge the three commits into a single one?
Sure! I had to make another pull request, because you can't send merged commits into the same branch in github.
When compiling a part of a file under windows, the temp-file was placed one directory above of where it should have been. I fixed this by appending a '/' (slash) at the end of the command "expand('%:p:h')" that gives the name of the current directory. Now it is working as expected.