Article View: news.software.readers
Article #253358Re: [slrn] cursor position in postpone "Save to:" field
From: John E. Davis
Date: Tue, 05 Feb 2013 22:15
Date: Tue, 05 Feb 2013 22:15
29 lines
2151 bytes
2151 bytes
On Tue, 05 Feb 2013 13:26:13 +0000, Adam Funk <a24061@ducksburg.com>
wrote:
> When I leave the editor and choose the option to postpone a message,
> the question asking for the filename comes up
>
> Save to: /home/adam/.slrn/postponed/
>
> with the cursor on the "h". I'm pretty sure it used to come up at the
> end of the path --- a more useful place. Has anyone else noticed
> this?
Here is a simple patch:
diff --git a/src/post.c b/src/post.c
index 259f0ee..6715897 100644
--- a/src/post.c
+++ b/src/post.c
@@ -1908,7 +1908,7 @@ static int postpone_file (char *file) /*{{{*/
if (-1 == slrn_dircat (dir, NULL, dirfile, sizeof (dirfile)))
return -1;
- if (-1 == slrn_read_filename (_("Save to: "), NULL, dirfile, 1, 1))
+ if (-1 == slrn_read_filename (_("Save to: "), NULL, dirfile, 1, -1))
return -1;
status = slrn_file_exists (dirfile);
Thanks,
--John
Technical Details
Message-ID:
<slrnkh315a.j05.jed@aluche.mit.edu>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!border1.nntp.dca3.giganews.com!border2.nntp.dca3.giganews.com!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!news.glorb.com!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mailReferences:
<lsd7u9x7rd.ln2@news.ducksburg.com>Show Full Headers
Complete Article Headers
Message-ID: <slrnkh315a.j05.jed@aluche.mit.edu> Subject: Re: [slrn] cursor position in postpone "Save to:" field Date: Tue, 05 Feb 2013 22:15:44 +0000 From: "John E. Davis" <jed@jedsoft.org> References: <lsd7u9x7rd.ln2@news.ducksburg.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!border1.nntp.dca3.giganews.com!border2.nntp.dca3.giganews.com!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!news.glorb.com!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail Newsgroups: news.software.readers Organization: A noiseless patient Spider Lines: 29 Reply-To: davis@space.mit.edu Injection-Date: Tue, 5 Feb 2013 22:15:44 +0000 (UTC) Injection-Info: mx05.eternal-september.org; posting-host="92d961b6f86ecac271f561441e0a0caa"; logging-data="15686"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19oimuBdueabEu2CPZxACFc" User-Agent: slrn/pre1.0.2-1 (Linux) Cancel-Lock: sha1:+QbqZCFQvrjV+wZe49POp0Ps7wI= X-Original-Bytes: 1933