public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Midnight Commander screen corruption w/ built-in editor
@ 2004-05-02  8:13 Errol Smith
  2004-05-02 15:01 ` Krzysztof Duleba
  2004-05-02 21:56 ` Frédéric L. W. Meunier
  0 siblings, 2 replies; 6+ messages in thread
From: Errol Smith @ 2004-05-02  8:13 UTC (permalink / raw)
  To: cygwin

 I'm having a problem with mc's editor (4.6.0-4, also tried mc-4.6.0a-20030721 with same issue). (cygwin 1.5.9-1 on 98se)
 If you are editing a file wider than the screen, sometimes the display becomes corrupted, with odd parts of lines appearing at the left screen edge and the display seems to lose left/right alignment with mc's internal idea of where it is (so if you go to insert a character, it actually gets inserted several characters up the line from where you thought).

Test case - make a file like this:
blah blah blah blah blah blah blah blah blah blah blah
<tab>blah blah blah blah blah blah blah blah blah blah blah
<tab><tab>blah blah blah blah blah blah blah blah blah blah blah
<tab><tab><tab>blah blah blah blah blah blah blah blah blah blah blah
.... (you get the idea - make it wider than the screen).

Then move the cursor to one of the longer lines (but not the _longest_ line), hit <END> (or cursor-right along the line) then hit the up-arrow key and see rubbish appear on the left hand side. It seems to be mostly the up-arrow key that does it, but sometimes when the screen shifts left, not all of it moves (some stays where it was, even though mc thinks it moved).

There may be a simpler way of producing the bug, but this is a reliable way I've found. Note that if you use spaces instead of tabs (or have the fill-tabs-with-spaces option on), the problem doesn't appear, so the tabs seem to be part of the cause.
Hitting page-up/page-down doesn't seem to fix it - I would have thought this would refresh the screen so it would then be in the right place, but it doesn't. Basically, once it goes funny, it stays that way and you have to close the file.
I've tried this full screen or windowed, in a normal shell or in rxvt, reinstalled mc and I also tried removing all mc related files/config and going back to default with no change. mc 4.6 on linux doesn't do it (with same test files).
Any ideas?

E


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2004-05-03 13:26 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-05-02  8:13 Midnight Commander screen corruption w/ built-in editor Errol Smith
2004-05-02 15:01 ` Krzysztof Duleba
2004-05-02 21:56 ` Frédéric L. W. Meunier
2004-05-02 22:39   ` Frédéric L. W. Meunier
2004-05-02 23:04     ` Not a Cygwin problem ( Was Re: Midnight Commander screen corruption w/ built-in editor) Frédéric L. W. Meunier
2004-05-03 13:26       ` Pavel Tsekov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).