patch 7.4.2115
Problem: Loading defaults.vim with -C argument.
Solution: Don't load the defaults script with -C argument. Test sourcing
the defaults script. Set 'display' to "truncate".
diff --git a/src/testdir/Make_all.mak b/src/testdir/Make_all.mak
index 78f0b0b..ced52e0 100644
--- a/src/testdir/Make_all.mak
+++ b/src/testdir/Make_all.mak
@@ -184,6 +184,7 @@
test_perl.res \
test_quickfix.res \
test_ruby.res \
+ test_startup.res \
test_stat.res \
test_syntax.res \
test_textobjects.res \
diff --git a/src/testdir/test_startup.vim b/src/testdir/test_startup.vim
new file mode 100644
index 0000000..0630b2a
--- /dev/null
+++ b/src/testdir/test_startup.vim
@@ -0,0 +1,8 @@
+" Check that loading startup.vim works.
+
+func Test_startup_script()
+ set compatible
+ source $VIMRUNTIME/defaults.vim
+
+ call assert_equal(0, &compatible)
+endfunc