aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir
diff options
context:
space:
mode:
authorJan Edmund Lazo <janedmundlazo@hotmail.com>2018-06-19 15:02:02 -0400
committerJan Edmund Lazo <janedmundlazo@hotmail.com>2018-06-19 15:08:43 -0400
commit6d4d2716944cad3c43234acf8e79aca47edabf6a (patch)
tree5ea6a88323b0843eb65ffecb2076ffa5f2ac11d0 /src/nvim/testdir
parenta10938ae318228330587c3f7bbf9178810931b0e (diff)
downloadrneovim-6d4d2716944cad3c43234acf8e79aca47edabf6a.tar.gz
rneovim-6d4d2716944cad3c43234acf8e79aca47edabf6a.tar.bz2
rneovim-6d4d2716944cad3c43234acf8e79aca47edabf6a.zip
vim-patch:8.0.0615: using % with :hardcopy wrongly escapes spaces
Problem: Using % with :hardcopy wrongly escapes spaces. (Alexey Muranov) Solution: Expand % differently. (Christian Brabandt, closes vim/vim#1682) https://github.com/vim/vim/commit/bf15b8d78b22661db8b19d662b62bb9a061cdd37
Diffstat (limited to 'src/nvim/testdir')
-rw-r--r--src/nvim/testdir/test_hardcopy.vim9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_hardcopy.vim b/src/nvim/testdir/test_hardcopy.vim
index 7aea704e86..88fe0f6c98 100644
--- a/src/nvim/testdir/test_hardcopy.vim
+++ b/src/nvim/testdir/test_hardcopy.vim
@@ -61,3 +61,12 @@ func Test_with_syntax()
set printoptions&
endif
endfunc
+
+func Test_fname_with_spaces()
+ split t\ e\ s\ t.txt
+ call setline(1, ['just', 'some', 'text'])
+ hardcopy > %.ps
+ call assert_true(filereadable('t e s t.txt.ps'))
+ call delete('t e s t.txt.ps')
+ bwipe!
+endfunc