mirror of
https://github.com/macvim-dev/macvim.git
synced 2026-06-11 15:37:29 +02:00
patch 7.4.741 Problem: When using += with ":set" a trailing comma is not recognized. (Issue 365) Solution: Don't add a second comma. Add a test. (partly by Christian Brabandt)
This commit is contained in:
committed by
Douglas Drumond
parent
f9a7efe252
commit
1932308565
@@ -4897,6 +4897,10 @@ do_set(arg, opt_flags)
|
||||
if (adding)
|
||||
{
|
||||
i = (int)STRLEN(origval);
|
||||
/* strip a trailing comma, would get 2 */
|
||||
if (comma && i > 1 && origval[i - 1] == ','
|
||||
&& origval[i - 2] != '\\')
|
||||
i--;
|
||||
mch_memmove(newval + i + comma, newval,
|
||||
STRLEN(newval) + 1);
|
||||
mch_memmove(newval, origval, (size_t)i);
|
||||
|
||||
@@ -54,6 +54,7 @@ SCRIPTS = test1.out test3.out test4.out test5.out test6.out \
|
||||
test_nested_function.out \
|
||||
test_options.out \
|
||||
test_qf_title.out \
|
||||
test_set.out \
|
||||
test_signs.out \
|
||||
test_textobjects.out \
|
||||
test_utf8.out
|
||||
@@ -198,6 +199,7 @@ test_marks.out: test_marks.in
|
||||
test_nested_function.out: test_nested_function.in
|
||||
test_options.out: test_options.in
|
||||
test_qf_title.out: test_qf_title.in
|
||||
test_set.out: test_set.in
|
||||
test_signs.out: test_signs.in
|
||||
test_textobjects.out: test_textobjects.in
|
||||
test_utf8.out: test_utf8.in
|
||||
|
||||
@@ -53,6 +53,7 @@ SCRIPTS = test3.out test4.out test5.out test6.out test7.out \
|
||||
test_nested_function.out \
|
||||
test_options.out \
|
||||
test_qf_title.out \
|
||||
test_set.out \
|
||||
test_signs.out \
|
||||
test_textobjects.out \
|
||||
test_utf8.out
|
||||
|
||||
@@ -75,6 +75,7 @@ SCRIPTS = test3.out test4.out test5.out test6.out test7.out \
|
||||
test_nested_function.out \
|
||||
test_options.out \
|
||||
test_qf_title.out \
|
||||
test_set.out \
|
||||
test_signs.out \
|
||||
test_textobjects.out \
|
||||
test_utf8.out
|
||||
|
||||
@@ -55,6 +55,7 @@ SCRIPTS = test1.out test3.out test4.out test5.out test6.out \
|
||||
test_nested_function.out \
|
||||
test_options.out \
|
||||
test_qf_title.out \
|
||||
test_set.out \
|
||||
test_signs.out \
|
||||
test_textobjects.out \
|
||||
test_utf8.out
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
# Authors: Zoltan Arpadffy, <arpadffy@polarhome.com>
|
||||
# Sandor Kopanyi, <sandor.kopanyi@mailbox.hu>
|
||||
#
|
||||
# Last change: 2015 Apr 21
|
||||
# Last change: 2015 Jun 19
|
||||
#
|
||||
# This has been tested on VMS 6.2 to 8.3 on DEC Alpha, VAX and IA64.
|
||||
# Edit the lines in the Configuration section below to select.
|
||||
@@ -114,6 +114,7 @@ SCRIPT = test1.out test2.out test3.out test4.out test5.out \
|
||||
test_nested_function.out \
|
||||
test_options.out \
|
||||
test_qf_title.out \
|
||||
test_set.out \
|
||||
test_signs.out \
|
||||
test_textobjects.out \
|
||||
test_utf8.out
|
||||
|
||||
@@ -51,6 +51,7 @@ SCRIPTS = test1.out test2.out test3.out test4.out test5.out test6.out \
|
||||
test_nested_function.out \
|
||||
test_options.out \
|
||||
test_qf_title.out \
|
||||
test_set.out \
|
||||
test_signs.out \
|
||||
test_textobjects.out \
|
||||
test_utf8.out
|
||||
|
||||
@@ -756,6 +756,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
741,
|
||||
/**/
|
||||
740,
|
||||
/**/
|
||||
|
||||
Reference in New Issue
Block a user