[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Nano-devel] Write File Help Text

From: David Benbennick
Subject: Re: [Nano-devel] Write File Help Text
Date: Wed, 15 May 2002 05:08:23 -0400
User-agent: Mutt/1.2.5i

On Mon, May 13, 2002 at 05:05:32PM +0200, Jean-Philippe Guérard wrote:
> While working on the translation of nano 1.1.9 in French, I noticed that
> the key list of the "Write File Help Text" seems to be strangely formated :

Um, I changed the help_init() function, then forgot to test all 9 of the
help screens.  Sorry.  The attached patch fixes the problem you found.  It
also makes help_init() better in other ways.  For example, help displays
better in very narrow windows now.  Also, I think the code is more
readable, and the binary is smaller.

I moved the meta-shortcuts to the left column, to agree with the main nano
help screen.  For example, the Write File help screen now looks like:

^G                      Invoke the help menu
^T                      Go to file browser
M-D                     Write file out in DOS format
M-O                     Write file out in Mac format
M-A                     Append to the current file
M-P                     Prepend to the current file
^C                      Cancel the current function

Finally, I changed some of the help texts.  "Goto" is not an English

On Tue, May 14, 2002 at 07:31:38PM -0700, David Lawrence Ramsey wrote:
> * The kludge to deal with totsize's being low by one upon
> reading in a file/input in general that doesn't end in a
> newline doesn't work properly in all cases; reading in a
> non-blank file that doesn't end in a newline results in
> totsize's being high by one.  Making it so totsize is
> incremented along with totlines when
> non-newline-terminated data is read in in read_file()
> (since a blank line counts as one character) and removing
> the kludge appears to have fixed the problem.

Wow.  Wish I had thought of that.  Looks like it works.

Attachment: may.15.04:37.diff
Description: Text document

Attachment: pgpz57loiyr0t.pgp
Description: PGP signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]