Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 298846 - app-misc/mc: Paste (Shift+Ctrl+V) in mcedit within X11 eats newlines when doing it by pressing keys
Summary: app-misc/mc: Paste (Shift+Ctrl+V) in mcedit within X11 eats newlines when doi...
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Alex Alexander (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-29 10:49 UTC by G. Náray
Modified: 2010-02-21 01:25 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description G. Náray 2009-12-29 10:49:16 UTC
I use mc in xfce (4.6.1), started it from terminal (x11-terms/terminal-0.4.2). I select a text file, and edit it with F4 (thus mcedit starts). Then i try to paste a text containing newlines by pressing Shift+Ctrl+V, and the text is pasted WITHOUT newlines. What is odd, if i select paste from the terminal menu, where the same Shift+Ctrl+V shortcut is written, so i would expect it should do the same, then the text is pasted WITH newlines perfectly. This probably means that Shift+Ctrl+V is processed by mcedit instead of terminal, and unfortunately it eats the newlines.
I tested it with mc-4.7.0_pre3, and 4.7.0 (masked, but hoped it would work), in both cases newlines disappear.

Reproducible: Always

Steps to Reproduce:
1.See description
2.
3.

Actual Results:  
Newlines disappear

Expected Results:  
Newlines appear
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2009-12-29 11:03:59 UTC
Sounds like a upstream issue,

Open a ticket at http://www.midnight-commander.org/ and link us there.
Comment 2 Jacek 2009-12-30 07:47:54 UTC
If was already fixed by upstream: http://www.midnight-commander.org/search?q=paste+newline&noquickjump=1&ticket=on
Could you add patch to ebuild ASAP?

Thanks!
Comment 3 Alex Alexander (RETIRED) gentoo-dev 2009-12-31 01:09:00 UTC
Are you positive it doesn't work with 4.7.0 final? It works here (in rxvt-unicode).

Make sure you "etc-update" after you upgrade to 4.7.0 to get the config files updated, or the fix won't be applied.

Feel free to reopen if it doesn't work :)
Comment 4 G. Náray 2009-12-31 09:42:50 UTC
etc-update is done, it updated 5 mc files, and i accepted the new files without any changes.

I tested the pasting more, and the result is interesting.
Shift+Insert works, Ctrl+V does nothing (probably correct), and Shift+Ctrl+V eats newlines! Maybe the problem is in /etc/mc.keymap, though not sure. The mc.keymap says that [editor]EditXPaste=shift-insert, which works. However i do not see where or how Shift+Ctrl+V is set. It is the shortcut for paste in menu of terminal.
Comment 5 Samuli Suominen (RETIRED) gentoo-dev 2010-02-07 15:13:34 UTC
Try latest: 4.7.0.2. 

If it still doesn't work, you need to open a ticket a http://www.midnight-commander.org/ exactly as said in Comment #1.

If there's no activity in this bug next couple of days, or a week, it will be closed.
Comment 6 haarp 2010-02-20 12:38:29 UTC
still broken :(
Comment 7 Alex Alexander (RETIRED) gentoo-dev 2010-02-21 01:25:40 UTC
Please open a bug @ http://www.midnight-commander.org/report as suggested by Samuli. You can then add the ticket link to the URL field here so we can keep track of it.

Thanks :)