nano-devel
[Top][All Lists]
Advanced

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

[Nano-devel] wrapping bug, w/possible fix


From: David Lawrence Ramsey
Subject: [Nano-devel] wrapping bug, w/possible fix
Date: Fri, 20 Sep 2002 13:49:15 -0700 (PDT)

There's a minor problem with the recently changed wrapping code: a space is 
tacked onto the end of each broken line even if that line already ends with a 
space.  This causes problems in the following case.

1. Starting with a new buffer, type in "this is a test".
2. Place the cursor at the beginning of the line, make sure wrapping is off, 
and hold down the spacebar until all four words are wrapped to the next line.  
Since the initial wrapping of each word inserts a space at the end of a 
previous word, and a space is automatically inserted between a newly wrapped 
word and whatever words are on the same line, each word will end up being 
separated by two spaces on the second line.

The attached patch appears to fix this (and makes a few cosmetic fixes to the 
surrounding comments).


_____________________________________________________________
Sluggy.Net: The Sluggy Freelance Community!

_____________________________________________________________
Promote your group and strengthen ties to your members with address@hidden by 
Everyone.net  http://www.everyone.net/?btn=tag

Attachment: dbwrapfix.patch
Description: Binary data


reply via email to

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