#2826: pasting into mcedit eats newlines (kinda reopening the #1736)
-------------------------------------+--------------------------
Reporter: rsv | Owner:
Type: defect | Status: new
Priority: minor | Milestone: 4.8
Component: mcedit | Version: master
Keywords: x integration | Blocked By:
Blocking: | Branch state: no branch
Votes for changeset: |
-------------------------------------+--------------------------
--
ubuntu 12.04 using XFCE and KDE - both have same behaviour
--
mc -V :
GNU Midnight Commander 4.8.1
Built with GLib 2.31.20
Using the S-Lang library with terminfo database
With builtin Editor
With subshell support as default
With support for background operations
With mouse support on xterm and Linux console
With support for X11 events
With internationalization support
With multiple codepages support
Virtual File Systems: cpiofs, tarfs, sfs, extfs, ext2undelfs, ftpfs, fish
Data types: char: 8; int: 32; long: 32; void *: 32; size_t: 32; off_t: 64;
--
https://www.midnight-commander.org/ticket/1736 - see this one.
I am having the same problems even now - 3 years after #1736 was fixed...
My workaround is to re-compile mc with --without-x
How I reproduce it - select multiline text from anywhere and try to paste
with ctrl-shift-v into mcedit - (does not matter from guake/konsole ).
I dont know how to debug this . So please tell me where in the source tree
to see these things:
- the input string that is in the clipboard before pasting
- the string that goes into mc
Somewhere in the middle the newlines are converted to spaces.
And it is because my linux user has some X11 related setting - cause with
a vanilla test linux user all is fine and no bug occurs.
Any hotughts will be helpful. Thanks.
--
Ticket URL: <http://www.midnight-commander.org/ticket/2826>
Midnight Commander <http://www.midnight-commander.org>
Midnight Development Center