Patch 8.0.0615
Problem: Using % with :hardcopy wrongly escapes spaces. (Alexey Muranov)
Solution: Expand % differently. (Christian Brabandt, closes #1682)
Files: src/ex_docmd.c, src/testdir/test_hardcopy.vim
*** ../vim-8.0.0614/src/ex_docmd.c 2017-06-04 18:59:10.787459123 +0200
--- src/ex_docmd.c 2017-06-04 20:42:39.508449506 +0200
***************
*** 5042,5047 ****
--- 5042,5048 ----
&& eap->cmdidx != CMD_lgrep
&& eap->cmdidx != CMD_grepadd
&& eap->cmdidx != CMD_lgrepadd
+ && eap->cmdidx != CMD_hardcopy
#ifndef UNIX
&& !(eap->argt & NOSPC)
#endif
*** ../vim-8.0.0614/src/testdir/test_hardcopy.vim 2016-04-03
14:54:31.000000000 +0200
--- src/testdir/test_hardcopy.vim 2017-06-04 20:41:37.468872711 +0200
***************
*** 60,62 ****
--- 60,71 ----
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
*** ../vim-8.0.0614/src/version.c 2017-06-04 20:29:56.585724971 +0200
--- src/version.c 2017-06-04 20:38:31.146154368 +0200
***************
*** 766,767 ****
--- 766,769 ----
{ /* Add new patch number below this line */
+ /**/
+ 615,
/**/
--
You have heard the saying that if you put a thousand monkeys in a room with a
thousand typewriters and waited long enough, eventually you would have a room
full of dead monkeys.
(Scott Adams - The Dilbert principle)
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.