id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	blockedby	blocking	branch_state	votes
1710	newlines are lost when pasting multiline text	slazav	andrew_b	"Sometimes (on some terminal settings?) when pasting multiline text with shift+mouse newline characters are lost. Pasted text is not shown before any key is pressed.


This happens because editor do not handle shift- and control-enter keys.

In src/widget.c/input_callback() there is an explicit workaround:

  /* When pasting multiline text, insert literal Enter */
  if ((parm & ~KEY_M_MASK) == '\n') {
     quote = 1;
     v = handle_char (in, '\n');
     quote = 0;
     return v;
  }

but mcedit use edit/editwidget.c/edit_callback() instead.

This problems can be fixed by adding similar code to edit_callback().

See commit 1269cfe65698ff0293a698849e9dcb1a6b12687d at
git://git.altlinux.org/people/slazav/packages/mc.git
"	defect	closed	major	4.7.0	mcedit	4.7.0-pre3	fixed						committed-master
