|
Karsten Hopp |
f28f21 |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
f28f21 |
Subject: Patch 7.4.741
|
|
Karsten Hopp |
f28f21 |
Fcc: outbox
|
|
Karsten Hopp |
f28f21 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
f28f21 |
Mime-Version: 1.0
|
|
Karsten Hopp |
f28f21 |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
f28f21 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
f28f21 |
------------
|
|
Karsten Hopp |
f28f21 |
|
|
Karsten Hopp |
f28f21 |
Patch 7.4.741
|
|
Karsten Hopp |
f28f21 |
Problem: When using += with ":set" a trailing comma is not recognized.
|
|
Karsten Hopp |
f28f21 |
(Issue 365)
|
|
Karsten Hopp |
f28f21 |
Solution: Don't add a second comma. Add a test. (partly by Christian
|
|
Karsten Hopp |
f28f21 |
Brabandt)
|
|
Karsten Hopp |
f28f21 |
Files: src/option.c, src/testdir/test_set.in, src/testdir/test_set.ok,
|
|
Karsten Hopp |
f28f21 |
src/testdir/Make_amiga.mak, src/testdir/Make_dos.mak,
|
|
Karsten Hopp |
f28f21 |
src/testdir/Make_ming.mak, src/testdir/Make_os2.mak,
|
|
Karsten Hopp |
f28f21 |
src/testdir/Make_vms.mms, src/testdir/Makefile
|
|
Karsten Hopp |
f28f21 |
|
|
Karsten Hopp |
f28f21 |
|
|
Karsten Hopp |
f28f21 |
*** ../vim-7.4.740/src/option.c 2015-06-09 18:35:17.471406959 +0200
|
|
Karsten Hopp |
f28f21 |
--- src/option.c 2015-06-19 14:03:17.869987088 +0200
|
|
Karsten Hopp |
f28f21 |
***************
|
|
Karsten Hopp |
f28f21 |
*** 4829,4834 ****
|
|
Karsten Hopp |
f28f21 |
--- 4829,4838 ----
|
|
Karsten Hopp |
f28f21 |
if (adding)
|
|
Karsten Hopp |
f28f21 |
{
|
|
Karsten Hopp |
f28f21 |
i = (int)STRLEN(origval);
|
|
Karsten Hopp |
f28f21 |
+ /* strip a trailing comma, would get 2 */
|
|
Karsten Hopp |
f28f21 |
+ if (comma && i > 1 && origval[i - 1] == ','
|
|
Karsten Hopp |
f28f21 |
+ && origval[i - 2] != '\\')
|
|
Karsten Hopp |
f28f21 |
+ i--;
|
|
Karsten Hopp |
f28f21 |
mch_memmove(newval + i + comma, newval,
|
|
Karsten Hopp |
f28f21 |
STRLEN(newval) + 1);
|
|
Karsten Hopp |
f28f21 |
mch_memmove(newval, origval, (size_t)i);
|
|
Karsten Hopp |
f28f21 |
*** ../vim-7.4.740/src/testdir/test_set.in 2015-06-19 14:06:11.504176595 +0200
|
|
Karsten Hopp |
f28f21 |
--- src/testdir/test_set.in 2015-06-19 13:40:14.560405399 +0200
|
|
Karsten Hopp |
f28f21 |
***************
|
|
Karsten Hopp |
f28f21 |
*** 0 ****
|
|
Karsten Hopp |
f28f21 |
--- 1,12 ----
|
|
Karsten Hopp |
f28f21 |
+ Tests for :set vim: set ft=vim :
|
|
Karsten Hopp |
f28f21 |
+
|
|
Karsten Hopp |
f28f21 |
+ STARTTEST
|
|
Karsten Hopp |
f28f21 |
+ :so small.vim
|
|
Karsten Hopp |
f28f21 |
+ :set wildignore=*.png,
|
|
Karsten Hopp |
f28f21 |
+ :set wildignore+=*.jpg
|
|
Karsten Hopp |
f28f21 |
+ :$put =&wildignore
|
|
Karsten Hopp |
f28f21 |
+ :/^Output goes here/+1,$w! test.out
|
|
Karsten Hopp |
f28f21 |
+ :qa!
|
|
Karsten Hopp |
f28f21 |
+ ENDTEST
|
|
Karsten Hopp |
f28f21 |
+
|
|
Karsten Hopp |
f28f21 |
+ Output goes here
|
|
Karsten Hopp |
f28f21 |
*** ../vim-7.4.740/src/testdir/test_set.ok 2015-06-19 14:06:11.508176554 +0200
|
|
Karsten Hopp |
f28f21 |
--- src/testdir/test_set.ok 2015-06-19 13:42:16.731131055 +0200
|
|
Karsten Hopp |
f28f21 |
***************
|
|
Karsten Hopp |
f28f21 |
*** 0 ****
|
|
Karsten Hopp |
f28f21 |
--- 1 ----
|
|
Karsten Hopp |
f28f21 |
+ *.png,*.jpg
|
|
Karsten Hopp |
f28f21 |
*** ../vim-7.4.740/src/testdir/Make_amiga.mak 2015-04-21 18:33:33.906675754 +0200
|
|
Karsten Hopp |
f28f21 |
--- src/testdir/Make_amiga.mak 2015-06-19 13:44:38.885650059 +0200
|
|
Karsten Hopp |
f28f21 |
***************
|
|
Karsten Hopp |
f28f21 |
*** 54,59 ****
|
|
Karsten Hopp |
f28f21 |
--- 54,60 ----
|
|
Karsten Hopp |
f28f21 |
test_nested_function.out \
|
|
Karsten Hopp |
f28f21 |
test_options.out \
|
|
Karsten Hopp |
f28f21 |
test_qf_title.out \
|
|
Karsten Hopp |
f28f21 |
+ test_set.out \
|
|
Karsten Hopp |
f28f21 |
test_signs.out \
|
|
Karsten Hopp |
f28f21 |
test_textobjects.out \
|
|
Karsten Hopp |
f28f21 |
test_utf8.out
|
|
Karsten Hopp |
f28f21 |
***************
|
|
Karsten Hopp |
f28f21 |
*** 198,203 ****
|
|
Karsten Hopp |
f28f21 |
--- 199,205 ----
|
|
Karsten Hopp |
f28f21 |
test_nested_function.out: test_nested_function.in
|
|
Karsten Hopp |
f28f21 |
test_options.out: test_options.in
|
|
Karsten Hopp |
f28f21 |
test_qf_title.out: test_qf_title.in
|
|
Karsten Hopp |
f28f21 |
+ test_set.out: test_set.in
|
|
Karsten Hopp |
f28f21 |
test_signs.out: test_signs.in
|
|
Karsten Hopp |
f28f21 |
test_textobjects.out: test_textobjects.in
|
|
Karsten Hopp |
f28f21 |
test_utf8.out: test_utf8.in
|
|
Karsten Hopp |
f28f21 |
*** ../vim-7.4.740/src/testdir/Make_dos.mak 2015-04-21 18:33:33.906675754 +0200
|
|
Karsten Hopp |
f28f21 |
--- src/testdir/Make_dos.mak 2015-06-19 13:44:47.549559793 +0200
|
|
Karsten Hopp |
f28f21 |
***************
|
|
Karsten Hopp |
f28f21 |
*** 53,58 ****
|
|
Karsten Hopp |
f28f21 |
--- 53,59 ----
|
|
Karsten Hopp |
f28f21 |
test_nested_function.out \
|
|
Karsten Hopp |
f28f21 |
test_options.out \
|
|
Karsten Hopp |
f28f21 |
test_qf_title.out \
|
|
Karsten Hopp |
f28f21 |
+ test_set.out \
|
|
Karsten Hopp |
f28f21 |
test_signs.out \
|
|
Karsten Hopp |
f28f21 |
test_textobjects.out \
|
|
Karsten Hopp |
f28f21 |
test_utf8.out
|
|
Karsten Hopp |
f28f21 |
*** ../vim-7.4.740/src/testdir/Make_ming.mak 2015-04-21 18:33:33.906675754 +0200
|
|
Karsten Hopp |
f28f21 |
--- src/testdir/Make_ming.mak 2015-06-19 13:45:00.801421725 +0200
|
|
Karsten Hopp |
f28f21 |
***************
|
|
Karsten Hopp |
f28f21 |
*** 75,80 ****
|
|
Karsten Hopp |
f28f21 |
--- 75,81 ----
|
|
Karsten Hopp |
f28f21 |
test_nested_function.out \
|
|
Karsten Hopp |
f28f21 |
test_options.out \
|
|
Karsten Hopp |
f28f21 |
test_qf_title.out \
|
|
Karsten Hopp |
f28f21 |
+ test_set.out \
|
|
Karsten Hopp |
f28f21 |
test_signs.out \
|
|
Karsten Hopp |
f28f21 |
test_textobjects.out \
|
|
Karsten Hopp |
f28f21 |
test_utf8.out
|
|
Karsten Hopp |
f28f21 |
*** ../vim-7.4.740/src/testdir/Make_os2.mak 2015-04-21 18:33:33.906675754 +0200
|
|
Karsten Hopp |
f28f21 |
--- src/testdir/Make_os2.mak 2015-06-19 13:45:07.781349001 +0200
|
|
Karsten Hopp |
f28f21 |
***************
|
|
Karsten Hopp |
f28f21 |
*** 55,60 ****
|
|
Karsten Hopp |
f28f21 |
--- 55,61 ----
|
|
Karsten Hopp |
f28f21 |
test_nested_function.out \
|
|
Karsten Hopp |
f28f21 |
test_options.out \
|
|
Karsten Hopp |
f28f21 |
test_qf_title.out \
|
|
Karsten Hopp |
f28f21 |
+ test_set.out \
|
|
Karsten Hopp |
f28f21 |
test_signs.out \
|
|
Karsten Hopp |
f28f21 |
test_textobjects.out \
|
|
Karsten Hopp |
f28f21 |
test_utf8.out
|
|
Karsten Hopp |
f28f21 |
*** ../vim-7.4.740/src/testdir/Make_vms.mms 2015-04-21 18:33:33.906675754 +0200
|
|
Karsten Hopp |
f28f21 |
--- src/testdir/Make_vms.mms 2015-06-19 13:45:17.649246188 +0200
|
|
Karsten Hopp |
f28f21 |
***************
|
|
Karsten Hopp |
f28f21 |
*** 4,10 ****
|
|
Karsten Hopp |
f28f21 |
# Authors: Zoltan Arpadffy, <arpadffy@polarhome.com>
|
|
Karsten Hopp |
f28f21 |
# Sandor Kopanyi, <sandor.kopanyi@mailbox.hu>
|
|
Karsten Hopp |
f28f21 |
#
|
|
Karsten Hopp |
f28f21 |
! # Last change: 2015 Apr 21
|
|
Karsten Hopp |
f28f21 |
#
|
|
Karsten Hopp |
f28f21 |
# This has been tested on VMS 6.2 to 8.3 on DEC Alpha, VAX and IA64.
|
|
Karsten Hopp |
f28f21 |
# Edit the lines in the Configuration section below to select.
|
|
Karsten Hopp |
f28f21 |
--- 4,10 ----
|
|
Karsten Hopp |
f28f21 |
# Authors: Zoltan Arpadffy, <arpadffy@polarhome.com>
|
|
Karsten Hopp |
f28f21 |
# Sandor Kopanyi, <sandor.kopanyi@mailbox.hu>
|
|
Karsten Hopp |
f28f21 |
#
|
|
Karsten Hopp |
f28f21 |
! # Last change: 2015 Jun 19
|
|
Karsten Hopp |
f28f21 |
#
|
|
Karsten Hopp |
f28f21 |
# This has been tested on VMS 6.2 to 8.3 on DEC Alpha, VAX and IA64.
|
|
Karsten Hopp |
f28f21 |
# Edit the lines in the Configuration section below to select.
|
|
Karsten Hopp |
f28f21 |
***************
|
|
Karsten Hopp |
f28f21 |
*** 114,119 ****
|
|
Karsten Hopp |
f28f21 |
--- 114,120 ----
|
|
Karsten Hopp |
f28f21 |
test_nested_function.out \
|
|
Karsten Hopp |
f28f21 |
test_options.out \
|
|
Karsten Hopp |
f28f21 |
test_qf_title.out \
|
|
Karsten Hopp |
f28f21 |
+ test_set.out \
|
|
Karsten Hopp |
f28f21 |
test_signs.out \
|
|
Karsten Hopp |
f28f21 |
test_textobjects.out \
|
|
Karsten Hopp |
f28f21 |
test_utf8.out
|
|
Karsten Hopp |
f28f21 |
*** ../vim-7.4.740/src/testdir/Makefile 2015-04-21 18:33:33.906675754 +0200
|
|
Karsten Hopp |
f28f21 |
--- src/testdir/Makefile 2015-06-19 13:41:02.539904437 +0200
|
|
Karsten Hopp |
f28f21 |
***************
|
|
Karsten Hopp |
f28f21 |
*** 51,56 ****
|
|
Karsten Hopp |
f28f21 |
--- 51,57 ----
|
|
Karsten Hopp |
f28f21 |
test_nested_function.out \
|
|
Karsten Hopp |
f28f21 |
test_options.out \
|
|
Karsten Hopp |
f28f21 |
test_qf_title.out \
|
|
Karsten Hopp |
f28f21 |
+ test_set.out \
|
|
Karsten Hopp |
f28f21 |
test_signs.out \
|
|
Karsten Hopp |
f28f21 |
test_textobjects.out \
|
|
Karsten Hopp |
f28f21 |
test_utf8.out
|
|
Karsten Hopp |
f28f21 |
*** ../vim-7.4.740/src/version.c 2015-06-19 12:43:02.384196168 +0200
|
|
Karsten Hopp |
f28f21 |
--- src/version.c 2015-06-19 13:30:12.122694151 +0200
|
|
Karsten Hopp |
f28f21 |
***************
|
|
Karsten Hopp |
f28f21 |
*** 743,744 ****
|
|
Karsten Hopp |
f28f21 |
--- 743,746 ----
|
|
Karsten Hopp |
f28f21 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
f28f21 |
+ /**/
|
|
Karsten Hopp |
f28f21 |
+ 741,
|
|
Karsten Hopp |
f28f21 |
/**/
|
|
Karsten Hopp |
f28f21 |
|
|
Karsten Hopp |
f28f21 |
--
|
|
Karsten Hopp |
f28f21 |
Amnesia is one of my favorite words, but I forgot what it means.
|
|
Karsten Hopp |
f28f21 |
|
|
Karsten Hopp |
f28f21 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
f28f21 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
f28f21 |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
f28f21 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|