diff --git a/src/testdir/test_modeline.vim b/src/testdir/test_modeline.vim index f02c68c7b..3bde58db4 100644 --- a/src/testdir/test_modeline.vim +++ b/src/testdir/test_modeline.vim @@ -1,9 +1,12 @@ " Tests for parsing the modeline. func Test_modeline_invalid() - " This was reading before allocated memory. + " This was reading allocated memory in the past. call writefile(['vi:0', 'nothing'], 'Xmodeline') + let modeline = &modeline + set modeline call assert_fails('split Xmodeline', 'E518:') + let &modeline = modeline bwipe! call delete('Xmodeline') endfunc diff --git a/src/version.c b/src/version.c index 5da60271c..54b9a6c7b 100644 --- a/src/version.c +++ b/src/version.c @@ -792,6 +792,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 506, /**/ 505, /**/