aboutsummaryrefslogtreecommitdiff
path: root/test/functional/ex_cmds/wundo_spec.lua
blob: d8bd8a70318fb60c595c4f441f6276ac229f89aa (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
-- Specs for
-- :wundo

local helpers = require('test.functional.helpers')
local execute, eq, clear, eval, feed =
  helpers.execute, helpers.eq, helpers.clear, helpers.eval, helpers.feed


describe(':wundo', function()
  before_each(clear)

  it('safely fails on new, non-empty buffer', function()
    feed('iabc<esc>')
    execute('wundo foo') -- This should not segfault. #1027
    --TODO: check messages for error message

    os.remove(eval('getcwd()') .. '/foo') --cleanup
  end)

end)