Skip to content

Commit 965ed14

Browse files
committed
patch 7.4.2292
Problem: Not all systems understand %F in printf(). Solution: Use %f.
1 parent 0418609 commit 965ed14

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

src/message.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4797,7 +4797,7 @@ vim_vsnprintf(
47974797
precision = max_prec;
47984798
l += sprintf(format + l, ".%d", (int)precision);
47994799
}
4800-
format[l] = fmt_spec;
4800+
format[l] = fmt_spec == 'F' ? 'f' : fmt_spec;
48014801
format[l + 1] = NUL;
48024802

48034803
str_arg_l = sprintf(tmp, format, f);

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -763,6 +763,8 @@ static char *(features[]) =
763763

764764
static int included_patches[] =
765765
{ /* Add new patch number below this line */
766+
/**/
767+
2292,
766768
/**/
767769
2291,
768770
/**/

0 commit comments

Comments
 (0)