Cannot paste text with Unix line endings into text editor modal

leeoniya's profile image leeoniya posted 9 years ago in General Permalink
Hi Anse,

this is not a regression, but definitely a follow-up to http://www.heidisql.com/forum.php?t=18682

it's currently not possible to paste multi-line text formatted with \n line endings into the TEXT editor even if the config pref is set to Unix and the editor window is also set to Unix, though it seems to work okay pasting directly into the data grid cell.

any chance of a fix for this?

thanks!
Code modification/commit from ansgarbecker, 9 years ago, revision 4971
Show line breaks other than Windows style as normal line breaks in text editor. See http://www.heidisql.com/forum.php?t=18769
ansgar's profile image ansgar posted 9 years ago Permalink
Fixed in r4971.

And I learned how to handle Unix linefeeds in a TMemo in this article.
leeoniya's profile image leeoniya posted 9 years ago Permalink
Thank you, and you're welcome ;)

However, there seems to be a regression in the undo function after this fix. I can no longer undo a paste using Ctrl+Z. This worked okay in 4970.
ansgar's profile image ansgar posted 9 years ago Permalink
Confirmed. Will check that.
leeoniya's profile image leeoniya posted 9 years ago Permalink
poke! any updates to report? thx.
ansgar's profile image ansgar posted 9 years ago Permalink
Nothing new yet. I can reproduce that but I can only speculate about its cause. I think that SynEdit gets confused with the pasted string which was manipulated by HeidiSQL.

Please login to leave a reply, or register at first.