Closed blueyed closed 9 years ago
Do you still get this? I don't.
Yes, I still get them.
Have you tried the "make test" recipe from #183?
I just merged #183 and I still have no problems. What version and patch level of Vim are you using?
Vim 7.4.527.
Vim 7.4.526 here. Well, I've had problems with some multibyte characters on the Vim side of the equation before. Could you change that char in test/autoclose_quotes.vim for another multibyte character and try again? The test needs one multibyte char, it doesn't matter which character we use as long as it's multibyte.
No success. The first test also fails when removing the "«":
autoclose_quotes:
not ok 21 - Line 8: ""x
# Test 'Line 8: ""x' failed:
# expected: '""x""'
# but got: '""x'
I've tried setting HOME=/dev/null for the tests, but without a visible change, except for errors about writing the viminfo file.
I was able to reproduce this in a virtual machine with Mint, so I can play with this now. That failing test is supposed to fail, it's harcoded to be ignored in autoclose_quotes.vim. I can't remember now why, though.
The issue was that [:punct:] does not always match the same set of characters. I include the quotes in smart_quote's regex now and it seems it fixed this issue. Let me know if it doesn't in your end.
:+1: Thanks for fixing it!
When I run the tests, I see two failures.
Is this expected?