diff options
| author | Justin M. Keyes <justinkz@gmail.com> | 2019-05-20 00:19:44 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-05-20 00:19:44 +0200 |
| commit | 8c842b39ba7e88fbe6e2fd562731030d5499e343 (patch) | |
| tree | 67d05283f04863c79dcd3126a9f60c188e1a0c2c /src/nvim/testdir | |
| parent | 5c13f368c650f7a66e562d573d91266d2d8e3264 (diff) | |
| parent | 766cc60337b57c874b09c909444f9978a78ccad1 (diff) | |
| download | rneovim-8c842b39ba7e88fbe6e2fd562731030d5499e343.tar.gz rneovim-8c842b39ba7e88fbe6e2fd562731030d5499e343.tar.bz2 rneovim-8c842b39ba7e88fbe6e2fd562731030d5499e343.zip | |
Merge #10034 from frangio/vim-8.1.1352
Diffstat (limited to 'src/nvim/testdir')
| -rw-r--r-- | src/nvim/testdir/test_undo.vim | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_undo.vim b/src/nvim/testdir/test_undo.vim index beb44f9699..0cb5dc4033 100644 --- a/src/nvim/testdir/test_undo.vim +++ b/src/nvim/testdir/test_undo.vim @@ -389,6 +389,15 @@ funct Test_undofile() " Test undofile() with 'undodir' set to a non-existing directory. " call assert_equal('', undofile('Xundofoo')) + if isdirectory('/tmp') + set undodir=/tmp + if has('osx') + call assert_equal('/tmp/%private%tmp%file', undofile('///tmp/file')) + else + call assert_equal('/tmp/%tmp%file', undofile('///tmp/file')) + endif + endif + set undodir& endfunc |