A "bug" in Midnight Commander? (the editor)




Hello Pavel,

On Tue, Jul 19, 2005 at 03:37:36PM +0300, Pavel Tsekov wrote:
Hello,

Can you give an example how MC behaves now and how it should behave ?


Yes, last night I did a specific experiment to show this to myself.  Here is
what I typed in the editor:

aaaaaaaaa bbbbbbbbbbbb ccccccccc dddddddddd eeeeeeeeeeeee ffffffffffff 
ggggggggggggg hhhhhhhhhhhhhh iiiiiiiiiiiiiiii jjjjjjjjjjjjjj kkkkkkkkk 
llllllll mmmmmmmmmmmmmmm nnnnnnnnnnnnnnnnnn ooooooooooooo pppp qqqqqqqqqqq.

After each pretend-word I typed a space, then the next one and I let the
built-in editor make new lines as it chose.  Each line does, as you say, have a
trailing space.  I'm composing this message in Emacs (for no good reason) and
inserting the experimental paragraph made by mc's editor.  I wonder if Emacs
will alter it.  Anyway, I then inserted the next word, "r" repeated, into the
middle of that paragraph and then used ctrl-p to reformat the paragraph and the
result is:

aaaaaaaaa bbbbbbbbbbbb ccccccccc dddddddddd eeeeeeeeeeeee ffffffffffff 
ggggggggggggg hhhhhhhhhhhhhh rrrrrrrrrrrrrr iiiiiiiiiiiiiiii
jjjjjjjjjjjjjj kkkkkkkkk  llllllll mmmmmmmmmmmmmmm nnnnnnnnnnnnnnnnnn
ooooooooooooo pppp qqqqqqqqqqq.

Note the double space after the k that used be at the end of a line.

My therapist says that I will somehow survive this crisis.


Original message continued from above:

On Tue, 19 Jul 2005, Tim Douglas wrote:

------------------------------


Message: 5
Date: Mon, 11 Jul 2005 05:33:22 -0000
From: "Reynir Stefansson" <reynirhs bakkar is>
Subject: Re: A "bug" in Midnight Commander? (the editor)
To: <mc gnome org>
Content-Type: text/plain; charset="iso-8859-1"


Tim's original question:
Hello,

I keep telling myself that there's a little inadequacy in the built in
editor. I haven't come accoss any reference to this feature in the faq
or built-in help.

Sorry, I'm not a programmer so there's no chance of me contributing
anything.  I suppose I could write a macro to get around this, but that
would be a "work-around" and not a fix.

When you use Ctrl-p to re-format a paragraph then there appears a
double-space in various places of that paragraph.

I reckon this inadequacy is too trivial to justify a fix, but I thought I
should ask anyway, espeically if one has already been made.


Does the text in question have trailing spaces? I dare say it's a rather
common affliction to text editors put in a double space when that happens.


Reynir Stef?nsson (reynirhs bakkar is)

Yes, that's right.

Emacs handles spaces correctly while reformatting a paragraph.  Oh well, I'll
live with it.  It's a small price to pay for all that mc does.

-- 


See you,
Tim.                            http://members.iinet.net.au/~timdougl/

(Got a message from 0spam.com?  They are my spam protection and I must 
have forgotten to permit your mail)



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