vim-jdaddy
vim-jdaddy copied to clipboard
jdaddy changes the float number when pretty printing
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.