vim-argwrap icon indicating copy to clipboard operation
vim-argwrap copied to clipboard

[Bug Report] Cannot split arguments with odd number of quotes.

Open offchan42 opened this issue 7 years ago • 1 comments

Try :ArgWrap this piece of code:

data: {text: 1, anotherText: "it's me", bool: true}

You will find that it stops splitting after the 2nd comma. My guess is that because the word it's me has odd numbers of single quote inside (From the example, it's just one single quote).

You can try 3 double quotes or 5 single quotes. All of them introduce bugs. Bugs also occur if the key is a text like this: "it's me"

offchan42 avatar Nov 29 '16 16:11 offchan42

@FooSoft Please consider fixing this bug.

offchan42 avatar Nov 29 '16 16:11 offchan42