dail8859 / NotepadNext

A cross-platform, reimplementation of Notepad++
GNU General Public License v3.0
9.22k stars 552 forks source link

missing end of line when copy in column mode #228

Open yiannisyu opened 2 years ago

yiannisyu commented 2 years ago

It is greate to have column mode available in NPN. This function works fine if you just select and copy. But if you move cursor to adjust the selection, then the copy result becomes one line. The expected result is to keep multi lines.

image

dail8859 commented 2 years ago

When I ported that code over from my BetterMultiSelection plugin for Notepad++ I now recall I never got around to implementing the copy/paste functionality 😄

https://github.com/dail8859/NotepadNext/blob/f95910f0388ecf8329297b7871fb4589e4318c01/src/NotepadNext/decorators/BetterMultiSelection.cpp#L120-L124

dail8859 commented 2 years ago

I looked deeper into this and just uncommenting those sections of code is not enough. The shortcuts registered to Ctrl+C, Ctrl+V, etc is consuming the keyboard input before this section of the code gets to process it.

smutao commented 1 year ago

It is greate to have column mode available in NPN. This function works fine if you just select and copy. But if you move cursor to adjust the selection, then the copy result becomes one line. The expected result is to keep multi lines.

image

same issue here