view src/testdir/test_modeline.vim @ 14904:8dd4014f9b98

Added tag v8.1.0463 for changeset c1ee9f32bec3f9d462e6e2fb54a5f3b9ef0e3a5a
author Christian Brabandt <cb@256bit.org>
date Sun, 07 Oct 2018 21:00:06 +0200
parents 68722ba52971
children 85467d180844
line wrap: on
line source

" Tests for parsing the modeline.

func Test_modeline_invalid()
  " This was reading before allocated memory.
  call writefile(['vi:0', 'nothing'], 'Xmodeline')
  call assert_fails('split Xmodeline', 'E518:')
  bwipe!
  call delete('Xmodeline')
endfunc