[patch] v:errors is not initialized

79 views
Skip to first unread message

thinca

unread,
Dec 2, 2015, 11:22:32 AM12/2/15
to vim...@googlegroups.com
diff --git a/src/eval.c b/src/eval.c
index a2a9986..d890d39 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -900,6 +900,7 @@ eval_init()
set_vim_var_nr(VV_SEARCHFORWARD, 1L);
set_vim_var_nr(VV_HLSEARCH, 1L);
set_vim_var_dict(VV_COMPLETED_ITEM, dict_alloc());
+ set_vim_var_list(VV_ERRORS, list_alloc());
set_reg_var(0); /* default for v:register is not 0 but '"' */


--
thinca <thi...@gmail.com>

Bram Moolenaar

unread,
Dec 3, 2015, 8:56:17 AM12/3/15
to thinca, vim...@googlegroups.com
Thanks. It's not really needed, but I suppose it's nicer to have an
empty list initially.

--
If Microsoft would build a car...
... the oil, water temperature, and alternator warning lights would
all be replaced by a single "General Protection Fault" warning light.

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
Reply all
Reply to author
Forward
0 new messages