diff options
Diffstat (limited to 'sftp.c')
-rw-r--r-- | sftp.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: sftp.c,v 1.161 2014/04/29 19:58:50 dtucker Exp $ */ | 1 | /* $OpenBSD: sftp.c,v 1.162 2014/04/29 20:36:51 dtucker Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2001-2004 Damien Miller <djm@openbsd.org> | 3 | * Copyright (c) 2001-2004 Damien Miller <djm@openbsd.org> |
4 | * | 4 | * |
@@ -1912,7 +1912,7 @@ complete_match(EditLine *el, struct sftp_conn *conn, char *remote_path, | |||
1912 | lf = el_line(el); | 1912 | lf = el_line(el); |
1913 | if (g.gl_matchc == 1) { | 1913 | if (g.gl_matchc == 1) { |
1914 | i = 0; | 1914 | i = 0; |
1915 | if (!terminated) | 1915 | if (!terminated && quote != '\0') |
1916 | ins[i++] = quote; | 1916 | ins[i++] = quote; |
1917 | if (*(lf->cursor - 1) != '/' && | 1917 | if (*(lf->cursor - 1) != '/' && |
1918 | (lastarg || *(lf->cursor) != ' ')) | 1918 | (lastarg || *(lf->cursor) != ' ')) |