From 217d285fddd80fb04b779b6e2888d57edb595f48 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Tue, 14 Sep 2010 12:47:37 +0200 Subject: updated for version 7.3.005 Problem: Crash when using undotree(). (Christian Brabandt) Solution: Increase the list reference count. Add a test for undotree() (Lech Lorens) --- src/testdir/Makefile | 2 +- src/testdir/test61.in | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'src/testdir') diff --git a/src/testdir/Makefile b/src/testdir/Makefile index 4951dc2fa..bdc2c28cb 100644 --- a/src/testdir/Makefile +++ b/src/testdir/Makefile @@ -44,7 +44,7 @@ report: $(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 diff --git a/src/testdir/test61.in b/src/testdir/test61.in index f9a157461..88831636a 100644 --- a/src/testdir/test61.in +++ b/src/testdir/test61.in @@ -3,6 +3,10 @@ Since this script is sourced we need to explicitly break changes up in 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 -- cgit v1.2.1