Ticket #323: mc-4.6.2-patch-ticket#323
File mc-4.6.2-patch-ticket#323, 487 bytes (added by sxmboer, 16 years ago) |
---|
Line | |
---|---|
1 | diff -ur mc-4.6.2/edit/editcmd.c mc-4.6.2-patched/edit/editcmd.c |
2 | --- mc-4.6.2/edit/editcmd.c 2009-02-01 14:30:21.000000000 -0500 |
3 | +++ mc-4.6.2-patched/edit/editcmd.c 2009-05-16 20:49:20.033272000 -0400 |
4 | @@ -743,6 +744,7 @@ |
5 | f = edit_open_macro_file ("a+"); |
6 | if (f) { |
7 | fprintf (f, ("key '%d 0': "), s); |
8 | + if (macro[n-1].command == CK_Begin_End_Macro) n--; |
9 | for (i = 0; i < n; i++) |
10 | fprintf (f, "%hd %hd, ", macro[i].command, macro[i].ch); |
11 | fprintf (f, ";\n"); |