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

jdaddy changes the float number when pretty printing

Open mzlogin opened this issue 1 year ago • 0 comments

First of all, thanks for this plugin that I used for years.

I met a bad case when gqaj.

Example input:

{"a":10.00, "b": 11.10}

expected output:

{"a":10.00, "b": 11.10}

actual output:

{"a": 10.0, "b": 11.1}

I did some simple debugging, and found the problem was there:

https://github.com/tpope/vim-jdaddy/blob/23b67752cb869dd9c8f3109173b69aa96a1f3acf/autoload/jdaddy.vim#L125

but I don't know how to fix it.

mzlogin avatar Aug 17 '23 02:08 mzlogin