diff options
author | Bram Moolenaar <Bram@vim.org> | 2017-06-04 20:43:48 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2017-06-04 20:43:48 +0200 |
commit | bf15b8d78b22661db8b19d662b62bb9a061cdd37 (patch) | |
tree | 202c4322d1c06e288bd088f5c8e9cfda03159608 /src/testdir/test_hardcopy.vim | |
parent | 863e80b4451b5102b41bebf9ddca3a420de746fa (diff) | |
download | vim-git-bf15b8d78b22661db8b19d662b62bb9a061cdd37.tar.gz |
patch 8.0.0615: using % with :hardcopy wrongly escapes spacesv8.0.0615
Problem: Using % with :hardcopy wrongly escapes spaces. (Alexey Muranov)
Solution: Expand % differently. (Christian Brabandt, closes #1682)
Diffstat (limited to 'src/testdir/test_hardcopy.vim')
-rw-r--r-- | src/testdir/test_hardcopy.vim | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/testdir/test_hardcopy.vim b/src/testdir/test_hardcopy.vim index ea9790d13..2a316d4f0 100644 --- a/src/testdir/test_hardcopy.vim +++ b/src/testdir/test_hardcopy.vim @@ -60,3 +60,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 |