Re: rox-edit: Fix for 'x lines selected' message

Bernard Jungen <[email protected]> Fri, 1 May 2009 21:59:57 +0200
Newsgroups gmane.comp.desktop.rox.devel
Message-ID <[email protected]>
On Fri, May 01, 2009 at 07:50:41PM +0100, Thomas Leonard wrote:
> 2009/4/27 Bernard Jungen <[email protected]>:
> > At http://repo.or.cz/w/rox-edit/bju.git?a=commit;h=202e2b1945b81818685925db4ac1e8943a4b6a42
> 
> "Number of lines was one too much in some special cases
> Added separate message for the one-line case + French translation"
> 
> How can it say one line is selected? If the selection starts and ends
> on the same line then it displays the number of characters instead.
> What are the special cases where it gets it wrong?

The code says it all. What happens if the newline is selected too? Same number
of characters selected? No. Two lines selected (as was printed)? No.

The bug is obvious when you're used to select entire lines.

B.

------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance & Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf