Problem: Crash when using undotree(). (Christian Brabandt)
Solution: Increase the list reference count. Add a test for undotree()
(Lech Lorens)
}
/*
- * Add a list entry to dictionary "d".
+ * Add a list entry to dictionary "d".
* Returns FAIL when out of memory and when key already exists.
*/
int
dictitem_free(item);
return FAIL;
}
+ ++list->lv_refcount;
return OK;
}
$(SCRIPTS) $(SCRIPTS_GUI): $(VIMPROG)
clean:
- -rm -rf *.out *.failed *.rej *.orig test.log tiny.vim small.vim mbyte.vim mzscheme.vim test.ok X* valgrind.pid* viminfo
+ -rm -rf *.out *.failed *.rej *.orig test.log tiny.vim small.vim mbyte.vim mzscheme.vim test.ok X* valgrind.* viminfo
test1.out: test1.in
-rm -f $*.failed tiny.vim small.vim mbyte.vim mzscheme.vim test.ok X* viminfo
undo-able pieces. Do that by setting 'undolevels'.
Also tests :earlier and :later.
+STARTTEST
+:echo undotree().entries
+ENDTEST
+
STARTTEST
:" Delete three characters and undo
Gx:set ul=100
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 5,
/**/
4,
/**/