Ticket #3874 (new defect) — at Initial Version
pasting wrapped line adds EOL
Reported by: | nerijus | Owned by: | |
---|---|---|---|
Priority: | critical | Milestone: | Future Releases |
Component: | mc-core | Version: | master |
Keywords: | paste wrap | Cc: | egmont, howaboutsynergy@… |
Blocked By: | Blocking: | ||
Branch state: | no branch | Votes for changeset: |
Description
For example, the line is:
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0
When wrap mode is on (F2), the line is displayed in mc viewer as:
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/
24.6.0
I select this wrapped line with a mouse and then paste it.
With bash-4.4/readline-7.0 if I put "set enable-bracketed-paste on" in ~/.inputrc, pasting a string with EOLs does not execute it. But with mc there is one problem. If I launch mc, press Ctrl-O and paste, it gets executed. But if I paste again, it does not. Or if I launch mc, press Ctrl-O, press Enter and then paste - it does not paste EOLs too.