diff options
-rw-r--r-- | test/functional/legacy/008_autocommands_spec.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/functional/legacy/008_autocommands_spec.lua b/test/functional/legacy/008_autocommands_spec.lua index 58f93392f0..2c398d3c73 100644 --- a/test/functional/legacy/008_autocommands_spec.lua +++ b/test/functional/legacy/008_autocommands_spec.lua @@ -85,6 +85,7 @@ describe('autocommands that delete and unload buffers:', function() feed('<C-L>') execute('q') wait() - eq('\nVimLeave done\n', io.open('test.out', 'r'):read('*all')) + eq('VimLeave done', + string.match(io.open('test.out', 'r'):read('*all'), "^%s*(.-)%s*$")) end) end) |