|
Karsten Hopp |
296350 |
To: vim-dev@vim.org
|
|
Karsten Hopp |
296350 |
Subject: Patch 7.3.030
|
|
Karsten Hopp |
296350 |
Fcc: outbox
|
|
Karsten Hopp |
296350 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
296350 |
Mime-Version: 1.0
|
|
Karsten Hopp |
296350 |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
296350 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
296350 |
------------
|
|
Karsten Hopp |
296350 |
|
|
Karsten Hopp |
296350 |
Patch 7.3.030
|
|
Karsten Hopp |
296350 |
Problem: Cannot store Dict and List in viminfo file.
|
|
Karsten Hopp |
296350 |
Solution: Add support for this. (Christian Brabandt)
|
|
Karsten Hopp |
296350 |
Files: runtime/doc/options.txt, src/eval.c, src/testdir/Make_amiga.mak,
|
|
Karsten Hopp |
296350 |
src/testdir/Make_dos.mak, src/testdir/Make_ming.mak,
|
|
Karsten Hopp |
296350 |
src/testdir/Make_os2.mak, src/testdir/Make_vms.mms,
|
|
Karsten Hopp |
296350 |
src/testdir/Makefile, src/testdir/main.aap, src/testdir/test74.in,
|
|
Karsten Hopp |
296350 |
src/testdir/test74.ok
|
|
Karsten Hopp |
296350 |
|
|
Karsten Hopp |
296350 |
|
|
Karsten Hopp |
296350 |
*** ../vim-7.3.029/runtime/doc/options.txt 2010-08-15 21:57:17.000000000 +0200
|
|
Karsten Hopp |
296350 |
--- runtime/doc/options.txt 2010-10-20 17:41:18.000000000 +0200
|
|
Karsten Hopp |
296350 |
***************
|
|
Karsten Hopp |
296350 |
*** 7530,7537 ****
|
|
Karsten Hopp |
296350 |
! When included, save and restore global variables that start
|
|
Karsten Hopp |
296350 |
with an uppercase letter, and don't contain a lowercase
|
|
Karsten Hopp |
296350 |
letter. Thus "KEEPTHIS and "K_L_M" are stored, but "KeepThis"
|
|
Karsten Hopp |
296350 |
! and "_K_L_M" are not. Only String and Number types are
|
|
Karsten Hopp |
296350 |
! stored.
|
|
Karsten Hopp |
296350 |
" Maximum number of lines saved for each register. Old name of
|
|
Karsten Hopp |
296350 |
the '<' item, with the disadvantage that you need to put a
|
|
Karsten Hopp |
296350 |
backslash before the ", otherwise it will be recognized as the
|
|
Karsten Hopp |
296350 |
--- 7530,7538 ----
|
|
Karsten Hopp |
296350 |
! When included, save and restore global variables that start
|
|
Karsten Hopp |
296350 |
with an uppercase letter, and don't contain a lowercase
|
|
Karsten Hopp |
296350 |
letter. Thus "KEEPTHIS and "K_L_M" are stored, but "KeepThis"
|
|
Karsten Hopp |
296350 |
! and "_K_L_M" are not. Nested List and Dict items may not be
|
|
Karsten Hopp |
296350 |
! read back correctly, you end up with a string representation
|
|
Karsten Hopp |
296350 |
! instead.
|
|
Karsten Hopp |
296350 |
" Maximum number of lines saved for each register. Old name of
|
|
Karsten Hopp |
296350 |
the '<' item, with the disadvantage that you need to put a
|
|
Karsten Hopp |
296350 |
backslash before the ", otherwise it will be recognized as the
|
|
Karsten Hopp |
296350 |
*** ../vim-7.3.029/src/eval.c 2010-09-14 12:47:30.000000000 +0200
|
|
Karsten Hopp |
296350 |
--- src/eval.c 2010-10-20 16:25:54.000000000 +0200
|
|
Karsten Hopp |
296350 |
***************
|
|
Karsten Hopp |
296350 |
*** 22520,22537 ****
|
|
Karsten Hopp |
296350 |
if (tab != NULL)
|
|
Karsten Hopp |
296350 |
{
|
|
Karsten Hopp |
296350 |
*tab++ = '\0'; /* isolate the variable name */
|
|
Karsten Hopp |
296350 |
! if (*tab == 'S') /* string var */
|
|
Karsten Hopp |
296350 |
! type = VAR_STRING;
|
|
Karsten Hopp |
296350 |
#ifdef FEAT_FLOAT
|
|
Karsten Hopp |
296350 |
! else if (*tab == 'F')
|
|
Karsten Hopp |
296350 |
! type = VAR_FLOAT;
|
|
Karsten Hopp |
296350 |
#endif
|
|
Karsten Hopp |
296350 |
|
|
Karsten Hopp |
296350 |
tab = vim_strchr(tab, '\t');
|
|
Karsten Hopp |
296350 |
if (tab != NULL)
|
|
Karsten Hopp |
296350 |
{
|
|
Karsten Hopp |
296350 |
tv.v_type = type;
|
|
Karsten Hopp |
296350 |
! if (type == VAR_STRING)
|
|
Karsten Hopp |
296350 |
tv.vval.v_string = viminfo_readstring(virp,
|
|
Karsten Hopp |
296350 |
(int)(tab - virp->vir_line + 1), TRUE);
|
|
Karsten Hopp |
296350 |
#ifdef FEAT_FLOAT
|
|
Karsten Hopp |
296350 |
--- 22520,22540 ----
|
|
Karsten Hopp |
296350 |
if (tab != NULL)
|
|
Karsten Hopp |
296350 |
{
|
|
Karsten Hopp |
296350 |
*tab++ = '\0'; /* isolate the variable name */
|
|
Karsten Hopp |
296350 |
! switch (*tab)
|
|
Karsten Hopp |
296350 |
! {
|
|
Karsten Hopp |
296350 |
! case 'S': type = VAR_STRING; break;
|
|
Karsten Hopp |
296350 |
#ifdef FEAT_FLOAT
|
|
Karsten Hopp |
296350 |
! case 'F': type = VAR_FLOAT; break;
|
|
Karsten Hopp |
296350 |
#endif
|
|
Karsten Hopp |
296350 |
+ case 'D': type = VAR_DICT; break;
|
|
Karsten Hopp |
296350 |
+ case 'L': type = VAR_LIST; break;
|
|
Karsten Hopp |
296350 |
+ }
|
|
Karsten Hopp |
296350 |
|
|
Karsten Hopp |
296350 |
tab = vim_strchr(tab, '\t');
|
|
Karsten Hopp |
296350 |
if (tab != NULL)
|
|
Karsten Hopp |
296350 |
{
|
|
Karsten Hopp |
296350 |
tv.v_type = type;
|
|
Karsten Hopp |
296350 |
! if (type == VAR_STRING || type == VAR_DICT || type == VAR_LIST)
|
|
Karsten Hopp |
296350 |
tv.vval.v_string = viminfo_readstring(virp,
|
|
Karsten Hopp |
296350 |
(int)(tab - virp->vir_line + 1), TRUE);
|
|
Karsten Hopp |
296350 |
#ifdef FEAT_FLOAT
|
|
Karsten Hopp |
296350 |
***************
|
|
Karsten Hopp |
296350 |
*** 22540,22548 ****
|
|
Karsten Hopp |
296350 |
#endif
|
|
Karsten Hopp |
296350 |
else
|
|
Karsten Hopp |
296350 |
tv.vval.v_number = atol((char *)tab + 1);
|
|
Karsten Hopp |
296350 |
set_var(virp->vir_line + 1, &tv, FALSE);
|
|
Karsten Hopp |
296350 |
! if (type == VAR_STRING)
|
|
Karsten Hopp |
296350 |
vim_free(tv.vval.v_string);
|
|
Karsten Hopp |
296350 |
}
|
|
Karsten Hopp |
296350 |
}
|
|
Karsten Hopp |
296350 |
}
|
|
Karsten Hopp |
296350 |
--- 22543,22569 ----
|
|
Karsten Hopp |
296350 |
#endif
|
|
Karsten Hopp |
296350 |
else
|
|
Karsten Hopp |
296350 |
tv.vval.v_number = atol((char *)tab + 1);
|
|
Karsten Hopp |
296350 |
+ if (type == VAR_DICT || type == VAR_LIST)
|
|
Karsten Hopp |
296350 |
+ {
|
|
Karsten Hopp |
296350 |
+ typval_T *etv = eval_expr(tv.vval.v_string, NULL);
|
|
Karsten Hopp |
296350 |
+
|
|
Karsten Hopp |
296350 |
+ if (etv == NULL)
|
|
Karsten Hopp |
296350 |
+ /* Failed to parse back the dict or list, use it as a
|
|
Karsten Hopp |
296350 |
+ * string. */
|
|
Karsten Hopp |
296350 |
+ tv.v_type = VAR_STRING;
|
|
Karsten Hopp |
296350 |
+ else
|
|
Karsten Hopp |
296350 |
+ {
|
|
Karsten Hopp |
296350 |
+ vim_free(tv.vval.v_string);
|
|
Karsten Hopp |
296350 |
+ tv = *etv;
|
|
Karsten Hopp |
296350 |
+ }
|
|
Karsten Hopp |
296350 |
+ }
|
|
Karsten Hopp |
296350 |
+
|
|
Karsten Hopp |
296350 |
set_var(virp->vir_line + 1, &tv, FALSE);
|
|
Karsten Hopp |
296350 |
!
|
|
Karsten Hopp |
296350 |
! if (tv.v_type == VAR_STRING)
|
|
Karsten Hopp |
296350 |
vim_free(tv.vval.v_string);
|
|
Karsten Hopp |
296350 |
+ else if (tv.v_type == VAR_DICT || tv.v_type == VAR_LIST)
|
|
Karsten Hopp |
296350 |
+ clear_tv(&tv;;
|
|
Karsten Hopp |
296350 |
}
|
|
Karsten Hopp |
296350 |
}
|
|
Karsten Hopp |
296350 |
}
|
|
Karsten Hopp |
296350 |
***************
|
|
Karsten Hopp |
296350 |
*** 22584,22591 ****
|
|
Karsten Hopp |
296350 |
case VAR_STRING: s = "STR"; break;
|
|
Karsten Hopp |
296350 |
case VAR_NUMBER: s = "NUM"; break;
|
|
Karsten Hopp |
296350 |
#ifdef FEAT_FLOAT
|
|
Karsten Hopp |
296350 |
! case VAR_FLOAT: s = "FLO"; break;
|
|
Karsten Hopp |
296350 |
#endif
|
|
Karsten Hopp |
296350 |
default: continue;
|
|
Karsten Hopp |
296350 |
}
|
|
Karsten Hopp |
296350 |
fprintf(fp, "!%s\t%s\t", this_var->di_key, s);
|
|
Karsten Hopp |
296350 |
--- 22605,22614 ----
|
|
Karsten Hopp |
296350 |
case VAR_STRING: s = "STR"; break;
|
|
Karsten Hopp |
296350 |
case VAR_NUMBER: s = "NUM"; break;
|
|
Karsten Hopp |
296350 |
#ifdef FEAT_FLOAT
|
|
Karsten Hopp |
296350 |
! case VAR_FLOAT: s = "FLO"; break;
|
|
Karsten Hopp |
296350 |
#endif
|
|
Karsten Hopp |
296350 |
+ case VAR_DICT: s = "DIC"; break;
|
|
Karsten Hopp |
296350 |
+ case VAR_LIST: s = "LIS"; break;
|
|
Karsten Hopp |
296350 |
default: continue;
|
|
Karsten Hopp |
296350 |
}
|
|
Karsten Hopp |
296350 |
fprintf(fp, "!%s\t%s\t", this_var->di_key, s);
|
|
Karsten Hopp |
296350 |
*** ../vim-7.3.029/src/testdir/Make_amiga.mak 2010-08-15 21:57:29.000000000 +0200
|
|
Karsten Hopp |
296350 |
--- src/testdir/Make_amiga.mak 2010-10-20 16:27:19.000000000 +0200
|
|
Karsten Hopp |
296350 |
***************
|
|
Karsten Hopp |
296350 |
*** 27,33 ****
|
|
Karsten Hopp |
296350 |
test56.out test57.out test58.out test59.out test60.out \
|
|
Karsten Hopp |
296350 |
test61.out test62.out test63.out test64.out test65.out \
|
|
Karsten Hopp |
296350 |
test66.out test67.out test68.out test69.out test70.out \
|
|
Karsten Hopp |
296350 |
! test71.out test72.out test73.out
|
|
Karsten Hopp |
296350 |
|
|
Karsten Hopp |
296350 |
.SUFFIXES: .in .out
|
|
Karsten Hopp |
296350 |
|
|
Karsten Hopp |
296350 |
--- 27,33 ----
|
|
Karsten Hopp |
296350 |
test56.out test57.out test58.out test59.out test60.out \
|
|
Karsten Hopp |
296350 |
test61.out test62.out test63.out test64.out test65.out \
|
|
Karsten Hopp |
296350 |
test66.out test67.out test68.out test69.out test70.out \
|
|
Karsten Hopp |
296350 |
! test71.out test72.out test73.out test74.out
|
|
Karsten Hopp |
296350 |
|
|
Karsten Hopp |
296350 |
.SUFFIXES: .in .out
|
|
Karsten Hopp |
296350 |
|
|
Karsten Hopp |
296350 |
***************
|
|
Karsten Hopp |
296350 |
*** 120,122 ****
|
|
Karsten Hopp |
296350 |
--- 120,123 ----
|
|
Karsten Hopp |
296350 |
test71.out: test71.in
|
|
Karsten Hopp |
296350 |
test72.out: test72.in
|
|
Karsten Hopp |
296350 |
test73.out: test73.in
|
|
Karsten Hopp |
296350 |
+ test74.out: test74.in
|
|
Karsten Hopp |
296350 |
*** ../vim-7.3.029/src/testdir/Make_dos.mak 2010-08-15 21:57:29.000000000 +0200
|
|
Karsten Hopp |
296350 |
--- src/testdir/Make_dos.mak 2010-10-20 16:13:35.000000000 +0200
|
|
Karsten Hopp |
296350 |
***************
|
|
Karsten Hopp |
296350 |
*** 27,33 ****
|
|
Karsten Hopp |
296350 |
test30.out test31.out test32.out test33.out test34.out \
|
|
Karsten Hopp |
296350 |
test37.out test38.out test39.out test40.out test41.out \
|
|
Karsten Hopp |
296350 |
test42.out test52.out test65.out test66.out test67.out \
|
|
Karsten Hopp |
296350 |
! test68.out test69.out test71.out test72.out test73.out
|
|
Karsten Hopp |
296350 |
|
|
Karsten Hopp |
296350 |
SCRIPTS32 = test50.out test70.out
|
|
Karsten Hopp |
296350 |
|
|
Karsten Hopp |
296350 |
--- 27,34 ----
|
|
Karsten Hopp |
296350 |
test30.out test31.out test32.out test33.out test34.out \
|
|
Karsten Hopp |
296350 |
test37.out test38.out test39.out test40.out test41.out \
|
|
Karsten Hopp |
296350 |
test42.out test52.out test65.out test66.out test67.out \
|
|
Karsten Hopp |
296350 |
! test68.out test69.out test71.out test72.out test73.out \
|
|
Karsten Hopp |
296350 |
! test74.out
|
|
Karsten Hopp |
296350 |
|
|
Karsten Hopp |
296350 |
SCRIPTS32 = test50.out test70.out
|
|
Karsten Hopp |
296350 |
|
|
Karsten Hopp |
296350 |
*** ../vim-7.3.029/src/testdir/Make_ming.mak 2010-08-15 21:57:29.000000000 +0200
|
|
Karsten Hopp |
296350 |
--- src/testdir/Make_ming.mak 2010-10-20 16:26:54.000000000 +0200
|
|
Karsten Hopp |
296350 |
***************
|
|
Karsten Hopp |
296350 |
*** 47,53 ****
|
|
Karsten Hopp |
296350 |
test30.out test31.out test32.out test33.out test34.out \
|
|
Karsten Hopp |
296350 |
test37.out test38.out test39.out test40.out test41.out \
|
|
Karsten Hopp |
296350 |
test42.out test52.out test65.out test66.out test67.out \
|
|
Karsten Hopp |
296350 |
! test68.out test69.out test71.out test72.out test72.out
|
|
Karsten Hopp |
296350 |
|
|
Karsten Hopp |
296350 |
SCRIPTS32 = test50.out test70.out
|
|
Karsten Hopp |
296350 |
|
|
Karsten Hopp |
296350 |
--- 47,54 ----
|
|
Karsten Hopp |
296350 |
test30.out test31.out test32.out test33.out test34.out \
|
|
Karsten Hopp |
296350 |
test37.out test38.out test39.out test40.out test41.out \
|
|
Karsten Hopp |
296350 |
test42.out test52.out test65.out test66.out test67.out \
|
|
Karsten Hopp |
296350 |
! test68.out test69.out test71.out test72.out test73.out \
|
|
Karsten Hopp |
296350 |
! test74.out
|
|
Karsten Hopp |
296350 |
|
|
Karsten Hopp |
296350 |
SCRIPTS32 = test50.out test70.out
|
|
Karsten Hopp |
296350 |
|
|
Karsten Hopp |
296350 |
*** ../vim-7.3.029/src/testdir/Make_os2.mak 2010-08-15 21:57:29.000000000 +0200
|
|
Karsten Hopp |
296350 |
--- src/testdir/Make_os2.mak 2010-10-20 16:13:35.000000000 +0200
|
|
Karsten Hopp |
296350 |
***************
|
|
Karsten Hopp |
296350 |
*** 27,33 ****
|
|
Karsten Hopp |
296350 |
test56.out test57.out test58.out test59.out test60.out \
|
|
Karsten Hopp |
296350 |
test61.out test62.out test63.out test64.out test65.out \
|
|
Karsten Hopp |
296350 |
test66.out test67.out test68.out test69.out test70.out \
|
|
Karsten Hopp |
296350 |
! test71.out test72.out test73.out
|
|
Karsten Hopp |
296350 |
|
|
Karsten Hopp |
296350 |
.SUFFIXES: .in .out
|
|
Karsten Hopp |
296350 |
|
|
Karsten Hopp |
296350 |
--- 27,33 ----
|
|
Karsten Hopp |
296350 |
test56.out test57.out test58.out test59.out test60.out \
|
|
Karsten Hopp |
296350 |
test61.out test62.out test63.out test64.out test65.out \
|
|
Karsten Hopp |
296350 |
test66.out test67.out test68.out test69.out test70.out \
|
|
Karsten Hopp |
296350 |
! test71.out test72.out test73.out test74.out
|
|
Karsten Hopp |
296350 |
|
|
Karsten Hopp |
296350 |
.SUFFIXES: .in .out
|
|
Karsten Hopp |
296350 |
|
|
Karsten Hopp |
296350 |
*** ../vim-7.3.029/src/testdir/Make_vms.mms 2010-08-15 21:57:29.000000000 +0200
|
|
Karsten Hopp |
296350 |
--- src/testdir/Make_vms.mms 2010-10-20 16:13:35.000000000 +0200
|
|
Karsten Hopp |
296350 |
***************
|
|
Karsten Hopp |
296350 |
*** 74,80 ****
|
|
Karsten Hopp |
296350 |
test56.out test57.out test60.out \
|
|
Karsten Hopp |
296350 |
test61.out test62.out test63.out test64.out test65.out \
|
|
Karsten Hopp |
296350 |
test66.out test67.out test68.out test69.out \
|
|
Karsten Hopp |
296350 |
! test71.out test72.out
|
|
Karsten Hopp |
296350 |
|
|
Karsten Hopp |
296350 |
# Known problems:
|
|
Karsten Hopp |
296350 |
# Test 30: a problem around mac format - unknown reason
|
|
Karsten Hopp |
296350 |
--- 74,80 ----
|
|
Karsten Hopp |
296350 |
test56.out test57.out test60.out \
|
|
Karsten Hopp |
296350 |
test61.out test62.out test63.out test64.out test65.out \
|
|
Karsten Hopp |
296350 |
test66.out test67.out test68.out test69.out \
|
|
Karsten Hopp |
296350 |
! test71.out test72.out test74.out
|
|
Karsten Hopp |
296350 |
|
|
Karsten Hopp |
296350 |
# Known problems:
|
|
Karsten Hopp |
296350 |
# Test 30: a problem around mac format - unknown reason
|
|
Karsten Hopp |
296350 |
*** ../vim-7.3.029/src/testdir/Makefile 2010-09-14 12:47:30.000000000 +0200
|
|
Karsten Hopp |
296350 |
--- src/testdir/Makefile 2010-10-20 16:13:35.000000000 +0200
|
|
Karsten Hopp |
296350 |
***************
|
|
Karsten Hopp |
296350 |
*** 10,15 ****
|
|
Karsten Hopp |
296350 |
--- 10,16 ----
|
|
Karsten Hopp |
296350 |
# This will make testing about 10 times as slow.
|
|
Karsten Hopp |
296350 |
# VALGRIND = valgrind --tool=memcheck --leak-check=yes --num-callers=15 --log-file=valgrind.$*
|
|
Karsten Hopp |
296350 |
|
|
Karsten Hopp |
296350 |
+
|
|
Karsten Hopp |
296350 |
SCRIPTS = test1.out test2.out test3.out test4.out test5.out test6.out \
|
|
Karsten Hopp |
296350 |
test7.out test8.out test9.out test10.out test11.out \
|
|
Karsten Hopp |
296350 |
test12.out test13.out test14.out test15.out test17.out \
|
|
Karsten Hopp |
296350 |
***************
|
|
Karsten Hopp |
296350 |
*** 23,29 ****
|
|
Karsten Hopp |
296350 |
test54.out test55.out test56.out test57.out test58.out \
|
|
Karsten Hopp |
296350 |
test59.out test60.out test61.out test62.out test63.out \
|
|
Karsten Hopp |
296350 |
test64.out test65.out test66.out test67.out test68.out \
|
|
Karsten Hopp |
296350 |
! test69.out test70.out test71.out test72.out test73.out
|
|
Karsten Hopp |
296350 |
|
|
Karsten Hopp |
296350 |
SCRIPTS_GUI = test16.out
|
|
Karsten Hopp |
296350 |
|
|
Karsten Hopp |
296350 |
--- 24,31 ----
|
|
Karsten Hopp |
296350 |
test54.out test55.out test56.out test57.out test58.out \
|
|
Karsten Hopp |
296350 |
test59.out test60.out test61.out test62.out test63.out \
|
|
Karsten Hopp |
296350 |
test64.out test65.out test66.out test67.out test68.out \
|
|
Karsten Hopp |
296350 |
! test69.out test70.out test71.out test72.out test73.out \
|
|
Karsten Hopp |
296350 |
! test74.out
|
|
Karsten Hopp |
296350 |
|
|
Karsten Hopp |
296350 |
SCRIPTS_GUI = test16.out
|
|
Karsten Hopp |
296350 |
|
|
Karsten Hopp |
296350 |
*** ../vim-7.3.029/src/testdir/main.aap 2010-08-15 21:57:29.000000000 +0200
|
|
Karsten Hopp |
296350 |
--- src/testdir/main.aap 2010-10-20 16:13:35.000000000 +0200
|
|
Karsten Hopp |
296350 |
***************
|
|
Karsten Hopp |
296350 |
*** 13,19 ****
|
|
Karsten Hopp |
296350 |
test33.out test34.out test35.out test36.out test37.out
|
|
Karsten Hopp |
296350 |
test38.out test39.out test40.out test41.out test42.out
|
|
Karsten Hopp |
296350 |
test43.out test44.out test45.out test46.out test47.out
|
|
Karsten Hopp |
296350 |
! test48.out test49.out
|
|
Karsten Hopp |
296350 |
|
|
Karsten Hopp |
296350 |
ScriptsGUI = test16.out
|
|
Karsten Hopp |
296350 |
|
|
Karsten Hopp |
296350 |
--- 13,19 ----
|
|
Karsten Hopp |
296350 |
test33.out test34.out test35.out test36.out test37.out
|
|
Karsten Hopp |
296350 |
test38.out test39.out test40.out test41.out test42.out
|
|
Karsten Hopp |
296350 |
test43.out test44.out test45.out test46.out test47.out
|
|
Karsten Hopp |
296350 |
! test48.out test49.out test74.out
|
|
Karsten Hopp |
296350 |
|
|
Karsten Hopp |
296350 |
ScriptsGUI = test16.out
|
|
Karsten Hopp |
296350 |
|
|
Karsten Hopp |
296350 |
*** ../vim-7.3.029/src/testdir/test74.in 2010-10-20 17:41:30.000000000 +0200
|
|
Karsten Hopp |
296350 |
--- src/testdir/test74.in 2010-10-20 17:37:52.000000000 +0200
|
|
Karsten Hopp |
296350 |
***************
|
|
Karsten Hopp |
296350 |
*** 0 ****
|
|
Karsten Hopp |
296350 |
--- 1,36 ----
|
|
Karsten Hopp |
296350 |
+ " Tests for storing global variables in the .viminfo file vim: set ft=vim:
|
|
Karsten Hopp |
296350 |
+
|
|
Karsten Hopp |
296350 |
+ STARTTEST
|
|
Karsten Hopp |
296350 |
+ :so small.vim
|
|
Karsten Hopp |
296350 |
+ :" Do all test in a separate window to avoid E211 when we recursively
|
|
Karsten Hopp |
296350 |
+ :" delete the Xfind directory during cleanup
|
|
Karsten Hopp |
296350 |
+ :"
|
|
Karsten Hopp |
296350 |
+ :" This will cause a few errors, do it silently.
|
|
Karsten Hopp |
296350 |
+ :set visualbell
|
|
Karsten Hopp |
296350 |
+ :set nocp viminfo+=!,nviminfo
|
|
Karsten Hopp |
296350 |
+ :let MY_GLOBAL_DICT={'foo': 1, 'bar': 0, 'longvarible': 1000}
|
|
Karsten Hopp |
296350 |
+ :" store a really long list, so line wrapping will occur in viminfo file
|
|
Karsten Hopp |
296350 |
+ :let MY_GLOBAL_LIST=range(1,100)
|
|
Karsten Hopp |
296350 |
+ :wv! Xviminfo
|
|
Karsten Hopp |
296350 |
+ :unlet MY_GLOBAL_DICT
|
|
Karsten Hopp |
296350 |
+ :unlet MY_GLOBAL_LIST
|
|
Karsten Hopp |
296350 |
+ :rv! Xviminfo
|
|
Karsten Hopp |
296350 |
+ :call delete('Xviminfo')
|
|
Karsten Hopp |
296350 |
+ :if exists("MY_GLOBAL_DICT")
|
|
Karsten Hopp |
296350 |
+ :redir >> test.out
|
|
Karsten Hopp |
296350 |
+ :echo MY_GLOBAL_DICT
|
|
Karsten Hopp |
296350 |
+ :redir end
|
|
Karsten Hopp |
296350 |
+ :endif
|
|
Karsten Hopp |
296350 |
+ :if exists("MY_GLOBAL_LIST")
|
|
Karsten Hopp |
296350 |
+ :redir >> test.out
|
|
Karsten Hopp |
296350 |
+ :echo MY_GLOBAL_LIST
|
|
Karsten Hopp |
296350 |
+ :redir end
|
|
Karsten Hopp |
296350 |
+ :endif
|
|
Karsten Hopp |
296350 |
+ :redir >> test.out
|
|
Karsten Hopp |
296350 |
+ :echo "foobar"
|
|
Karsten Hopp |
296350 |
+ :redir end
|
|
Karsten Hopp |
296350 |
+ :endif
|
|
Karsten Hopp |
296350 |
+ :qa!
|
|
Karsten Hopp |
296350 |
+ ENDTEST
|
|
Karsten Hopp |
296350 |
+
|
|
Karsten Hopp |
296350 |
+ eof
|
|
Karsten Hopp |
296350 |
*** ../vim-7.3.029/src/testdir/test74.ok 2010-10-20 17:41:30.000000000 +0200
|
|
Karsten Hopp |
296350 |
--- src/testdir/test74.ok 2010-10-20 17:36:57.000000000 +0200
|
|
Karsten Hopp |
296350 |
***************
|
|
Karsten Hopp |
296350 |
*** 0 ****
|
|
Karsten Hopp |
296350 |
--- 1,5 ----
|
|
Karsten Hopp |
296350 |
+
|
|
Karsten Hopp |
296350 |
+ {'foo': 1, 'longvarible': 1000, 'bar': 0}
|
|
Karsten Hopp |
296350 |
+ [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100]
|
|
Karsten Hopp |
296350 |
+
|
|
Karsten Hopp |
296350 |
+ foobar
|
|
Karsten Hopp |
296350 |
*** ../vim-7.3.029/src/version.c 2010-10-15 20:20:00.000000000 +0200
|
|
Karsten Hopp |
296350 |
--- src/version.c 2010-10-20 17:23:54.000000000 +0200
|
|
Karsten Hopp |
296350 |
***************
|
|
Karsten Hopp |
296350 |
*** 716,717 ****
|
|
Karsten Hopp |
296350 |
--- 716,719 ----
|
|
Karsten Hopp |
296350 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
296350 |
+ /**/
|
|
Karsten Hopp |
296350 |
+ 30,
|
|
Karsten Hopp |
296350 |
/**/
|
|
Karsten Hopp |
296350 |
|
|
Karsten Hopp |
296350 |
--
|
|
Karsten Hopp |
296350 |
Not too long ago, cut and paste was done with scissors and glue...
|
|
Karsten Hopp |
296350 |
|
|
Karsten Hopp |
296350 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
296350 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
296350 |
\\\ download, build and distribute -- http://www.A-A-P.org ///
|
|
Karsten Hopp |
296350 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|