4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
11 Problem: Named signs do not use a negative number as intended.
12 Solution: Fix the numbering of named signs. (Xavier de Gaye)
16 *** ../vim-7.3.023/src/ex_cmds.c 2010-09-21 16:56:29.000000000 +0200
17 --- src/ex_cmds.c 2010-10-13 16:37:18.000000000 +0200
20 sp = (sign_T *)alloc_clear((unsigned)sizeof(sign_T));
23 - if (sp_prev == NULL)
26 - sp_prev->sn_next = sp;
27 - sp->sn_name = vim_strnsave(arg, (int)(p - arg));
29 /* If the name is a number use that for the typenr,
30 * otherwise use a negative number. */
35 for (lp = first_sign; lp != NULL; lp = lp->sn_next)
37 ! if (lp->sn_typenr == last_sign_typenr)
40 if (last_sign_typenr == 0)
41 last_sign_typenr = MAX_TYPENR;
42 if (last_sign_typenr == start)
44 EMSG(_("E612: Too many signs defined"));
49 for (lp = first_sign; lp != NULL; lp = lp->sn_next)
51 ! if (lp->sn_typenr == -last_sign_typenr)
54 if (last_sign_typenr == 0)
55 last_sign_typenr = MAX_TYPENR;
56 if (last_sign_typenr == start)
59 EMSG(_("E612: Too many signs defined"));
67 ! sp->sn_typenr = last_sign_typenr--;
68 ! if (last_sign_typenr == 0)
69 last_sign_typenr = MAX_TYPENR; /* wrap around */
73 /* set values for a defined sign. */
78 ! sp->sn_typenr = -last_sign_typenr;
79 ! if (--last_sign_typenr == 0)
80 last_sign_typenr = MAX_TYPENR; /* wrap around */
83 + /* add the new sign to the list of signs */
84 + if (sp_prev == NULL)
87 + sp_prev->sn_next = sp;
88 + sp->sn_name = vim_strnsave(arg, (int)(p - arg));
91 /* set values for a defined sign. */
92 *** ../vim-7.3.023/src/version.c 2010-10-13 16:22:05.000000000 +0200
93 --- src/version.c 2010-10-13 16:42:14.000000000 +0200
97 { /* Add new patch number below this line */
103 In war we're tough and able.
107 And impersonate Clark Gable
108 It's a busy life in Camelot.
109 I have to push the pram a lot.
110 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
112 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
113 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
114 \\\ download, build and distribute -- http://www.A-A-P.org ///
115 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///