aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2018-06-16 12:42:05 +0200
committerGitHub <noreply@github.com>2018-06-16 12:42:05 +0200
commiteeeaf04c5ecd4471c8a01c87d935e2c0e563272e (patch)
tree577c3f267866b06c35842dc96b3cd79d5e2e59b3 /src/nvim/testdir
parent4bb039e2257ede3faf968ef9adcb786e2f41ffe5 (diff)
parentf4dffe7181ca55ebf44dd477f57acb8a73fa71fa (diff)
downloadrneovim-eeeaf04c5ecd4471c8a01c87d935e2c0e563272e.tar.gz
rneovim-eeeaf04c5ecd4471c8a01c87d935e2c0e563272e.tar.bz2
rneovim-eeeaf04c5ecd4471c8a01c87d935e2c0e563272e.zip
Merge #8565 from janlazo/vim-8.0.0575
Diffstat (limited to 'src/nvim/testdir')
-rw-r--r--src/nvim/testdir/test_options.vim12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_options.vim b/src/nvim/testdir/test_options.vim
index 5ae8528ee9..d9cd5fd583 100644
--- a/src/nvim/testdir/test_options.vim
+++ b/src/nvim/testdir/test_options.vim
@@ -275,3 +275,15 @@ func Test_complete()
set complete&
endfun
+func ResetIndentexpr()
+ set indentexpr=
+endfunc
+
+func Test_set_indentexpr()
+ " this was causing usage of freed memory
+ set indentexpr=ResetIndentexpr()
+ new
+ call feedkeys("i\<c-f>", 'x')
+ call assert_equal('', &indentexpr)
+ bwipe!
+endfunc