[Top][All Lists]

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

[Nano-devel] Here are some bug fixes for nano.

From: David Benbennick
Subject: [Nano-devel] Here are some bug fixes for nano.
Date: Tue, 5 Mar 2002 06:48:39 -0500 (EST)

To nano developers,

Nano is a great program.  Thanks for writing it.  Here is code to fix some
justification bugs.  I have attached my edited nano.c, as well as a diff
between the 2002/03/04 18:12:28 sourceforge version and mine.  Let me
describe what bugs I fixed:

There was only one really important bug:

o  If there was a word longer than the justification column width in the
middle of a paragraph, then justifying crashed nano.

Then there were these three niggly things:

o  The new code preserves the double space after ! and ?.

o  If a line ends in ".  " with the . at the justification column width
(that is, COLS - 8 by default), then the last space used to be moved to
the next line, creating a new paragraph.

o  The new code strips spaces from the end of the paragraph when
justifying.  That is how pico acts.  If you really wanted it that way, the
change was in lines 2222--2229.

o  The top of the justify_format function has a wierdness.  The code there
is for removing duplicate spaces from the paragraph being justified.  But
it explicitly ignored the first character.  Thus, the paragraph

I           want this big blank space justified!

would be left unchanged by justifying.  Pico doesn't have this wierd
behavior; I changed the 1 on line 2205 to 0.

Please let me know if you accept these changes.  I would like to keep
fixing bugs and maybe even implementing features.  Thanks.

David Benbennick

Attachment: nano.c.diff
Description: Text document

Attachment: nano.c
Description: Text document

reply via email to

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