Merge #8596 from janlazo/vim-8.0.0615

This commit is contained in:
Justin M. Keyes
2018-06-20 00:58:33 +02:00
committed by GitHub
2 changed files with 34 additions and 22 deletions

View File

@@ -2317,9 +2317,9 @@ doend:
*/ */
int int
checkforcmd( checkforcmd(
char_u **pp, /* start of command */ char_u **pp, // start of command
char *cmd, /* name of command */ char *cmd, // name of command
int len /* required length */ int len // required length
) )
{ {
int i; int i;
@@ -4080,6 +4080,7 @@ int expand_filename(exarg_T *eap, char_u **cmdlinep, char_u **errormsgp)
&& eap->cmdidx != CMD_lgrep && eap->cmdidx != CMD_lgrep
&& eap->cmdidx != CMD_grepadd && eap->cmdidx != CMD_grepadd
&& eap->cmdidx != CMD_lgrepadd && eap->cmdidx != CMD_lgrepadd
&& eap->cmdidx != CMD_hardcopy
&& !(eap->argt & NOSPC) && !(eap->argt & NOSPC)
) { ) {
char_u *l; char_u *l;
@@ -4704,7 +4705,7 @@ char_u *check_nextcmd(char_u *p)
*/ */
static int static int
check_more( check_more(
int message, /* when FALSE check only, no messages */ int message, // when FALSE check only, no messages
int forceit int forceit
) )
{ {

View File

@@ -61,3 +61,14 @@ func Test_with_syntax()
set printoptions& set printoptions&
endif endif
endfunc endfunc
func Test_fname_with_spaces()
if has('postscript')
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!
endif
endfunc