aboutsummaryrefslogtreecommitdiff
path: root/test/functional/ex_cmds/wundo_spec.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2014-10-26 20:03:02 +0000
committerJustin M. Keyes <justinkz@gmail.com>2014-10-26 20:03:02 +0000
commit49d5ed55914b5af32abcb87b6b422f880dc1d0d0 (patch)
tree39011f1f5c655b73c35465f74b9428ba9df34c10 /test/functional/ex_cmds/wundo_spec.lua
parent3fc542b45bc6b3b826f7c2eabffe1ede3cb7afbf (diff)
downloadrneovim-49d5ed55914b5af32abcb87b6b422f880dc1d0d0.tar.gz
rneovim-49d5ed55914b5af32abcb87b6b422f880dc1d0d0.tar.bz2
rneovim-49d5ed55914b5af32abcb87b6b422f880dc1d0d0.zip
fix #1027: :wundo segfault in new, non-empty buffer
Diffstat (limited to 'test/functional/ex_cmds/wundo_spec.lua')
-rw-r--r--test/functional/ex_cmds/wundo_spec.lua20
1 files changed, 20 insertions, 0 deletions
diff --git a/test/functional/ex_cmds/wundo_spec.lua b/test/functional/ex_cmds/wundo_spec.lua
new file mode 100644
index 0000000000..d8bd8a7031
--- /dev/null
+++ b/test/functional/ex_cmds/wundo_spec.lua
@@ -0,0 +1,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)