diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2018-08-26 15:20:59 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-26 15:20:59 +0200 |
commit | eb663d53673c10fc5fe6af1cec354b1912780832 (patch) | |
tree | 3a0912ecbd1cf453c481c311541bdc262b248ff9 /src/nvim/strings.c | |
parent | 8f058dca890ca9b9678e2435020f84a5f9c75acb (diff) | |
parent | 16b55d2e9d074bb3de7505708c30c05fe02d8f12 (diff) | |
download | rneovim-eb663d53673c10fc5fe6af1cec354b1912780832.tar.gz rneovim-eb663d53673c10fc5fe6af1cec354b1912780832.tar.bz2 rneovim-eb663d53673c10fc5fe6af1cec354b1912780832.zip |
Merge #8903 from janlazo/vim-8.0.0883
Diffstat (limited to 'src/nvim/strings.c')
-rw-r--r-- | src/nvim/strings.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/strings.c b/src/nvim/strings.c index f24de72743..17c4a75a64 100644 --- a/src/nvim/strings.c +++ b/src/nvim/strings.c @@ -1217,6 +1217,7 @@ int vim_vsnprintf(char *str, size_t str_m, const char *fmt, va_list ap, str_arg_l = 3; zero_padding = 0; } else { + // Regular float number format[0] = '%'; size_t l = 1; if (force_sign) { @@ -1241,7 +1242,6 @@ int vim_vsnprintf(char *str, size_t str_m, const char *fmt, va_list ap, format[l] = (char)(fmt_spec == 'F' ? 'f' : fmt_spec); format[l + 1] = NUL; - // Regular float number str_arg_l = (size_t)snprintf(tmp, sizeof(tmp), format, f); assert(str_arg_l < sizeof(tmp)); |