summaryrefslogtreecommitdiff
path: root/src/ex_docmd.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-06-04 20:43:48 +0200
committerBram Moolenaar <Bram@vim.org>2017-06-04 20:43:48 +0200
commitbf15b8d78b22661db8b19d662b62bb9a061cdd37 (patch)
tree202c4322d1c06e288bd088f5c8e9cfda03159608 /src/ex_docmd.c
parent863e80b4451b5102b41bebf9ddca3a420de746fa (diff)
downloadvim-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/ex_docmd.c')
-rw-r--r--src/ex_docmd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ex_docmd.c b/src/ex_docmd.c
index 2c9c8782e..bf340de40 100644
--- a/src/ex_docmd.c
+++ b/src/ex_docmd.c
@@ -5042,6 +5042,7 @@ expand_filename(
&& eap->cmdidx != CMD_lgrep
&& eap->cmdidx != CMD_grepadd
&& eap->cmdidx != CMD_lgrepadd
+ && eap->cmdidx != CMD_hardcopy
#ifndef UNIX
&& !(eap->argt & NOSPC)
#endif