w3m

Unnamed repository; edit this file to name it for gitweb.
git clone https://logand.com/git/w3m.git/
Log | Files | Refs | README

commit 641dc940053f2860c8388defa2e94be5dc434a43
parent 186bc3752f1bef129209caa01ad2637fd885c6b9
Author: ukai <ukai>
Date:   Sun,  9 Jun 2002 16:11:33 +0000

[w3m-dev-en 00752] Re: tab completion weirdness in w3m 0.3
* file.c (doFileCopy): same fix as [w3m-dev-en 00751]
From: Kiyokazu SUTO <suto@ks-and-ks.ne.jp>

Diffstat:
MChangeLog | 5+++++
Mfile.c | 12++++++++----
2 files changed, 13 insertions(+), 4 deletions(-)

diff --git a/ChangeLog b/ChangeLog @@ -1,5 +1,10 @@ 2002-06-10 Kiyokazu SUTO <suto@ks-and-ks.ne.jp> + * [w3m-dev-en 00752] Re: tab completion weirdness in w3m 0.3 + * file.c (doFileCopy): same fix as [w3m-dev-en 00751] + +2002-06-10 Kiyokazu SUTO <suto@ks-and-ks.ne.jp> + * [w3m-dev-en 00751] Re: tab completion weirdness in w3m 0.3 * main.c (svBuf): unescape spaces when input is filename * proto.h (unescape_spaces): added diff --git a/file.c b/file.c @@ -7112,18 +7112,22 @@ doFileCopy(char *tmpf, char *defstr) { Str msg; Str filen; - char *p, *q; + char *p, *q = NULL; if (fmInitialized) { p = searchKeyData(); if (p == NULL || *p == '\0') { - p = inputLineHist("(Download)Save file to: ", + q = inputLineHist("(Download)Save file to: ", defstr, IN_COMMAND, SaveHist); - if (p == NULL || *p == '\0') + if (q == NULL || *q == '\0') return; - p = conv_to_system(p); + p = conv_to_system(q); } if (*p != '|' || !PermitSaveToPipe) { + if (q) { + p = unescape_spaces(Strnew_charp(q))->ptr; + p = conv_to_system(q); + } p = expandName(p); if (checkOverWrite(p) < 0) return;