Editor2 doesn't capture last line break when cuting/copying

Questions & Answers

Moderators: fgagnon, nikos, Site Mods

Post Reply
User avatar
NiteShdw
New Member
Posts: 2
Joined: 2008 Dec 08, 21:42
Contact:

Editor2 doesn't capture last line break when cuting/copying

Post by NiteShdw »

A really frequent thing that I do with text editors and IDEs is cut a few lines and past them in another location.

Editor2 doesn't behave like all the other text editors and IDEs I use.

The expected behavior is that I can put the cursor at the beginning of a line, hold SHIFT, and press DOWN to select the entire line.  I then use CTRL-X to cut it, move the cursor to another line, and CTRL-V to paste it.  It should insert the line above the currently selected line.

Code: Select all

Line 2
Line 1 (cut and pasted)
Line 3
What Editor2 does is that it pastes the line without the training line break, so that it turns into one long line.

Code: Select all

Line 2
Line 1 (cut and pasted)Line 3
This is so incredibly frustrating.
User avatar
fgagnon
Site Admin
Site Admin
Posts: 3737
Joined: 2003 Sep 08, 19:56
Location: Springfield

Post by fgagnon »

NiteShdw,

That's a long-standing issue; but thanks (really!) for bringing it up.

Myself, I have "learned" to just live with it.
Nikos has not seemed at all anxious to fix it, and most of us long-time users gave up asking years ago. :shrug:

However, maybe, just maybe, this time will be different!  
nikos? please?   :twisted:
User avatar
nikos
Site Admin
Site Admin
Posts: 15794
Joined: 2002 Feb 07, 15:57
Location: UK
Contact:

Post by nikos »

it's not me, it's that @£%$ richedit control!
on the plus side, ed2 makes it really easy to copy a whole line, just press ctrl+C without selecting anything and the current line is copied
User avatar
NiteShdw
New Member
Posts: 2
Joined: 2008 Dec 08, 21:42
Contact:

Post by NiteShdw »

Well, that shortcut is good to know for at least one line.

It would be nice if there was some kind of workaround for that issue, but I understand what it's like dealing with the limitations and bugs in Microsoft's common controls.
Post Reply