Bug #18856 2013-01-04 23:41

mariand

Alt + Up/Down moves not only selected rows

After selecting whole rows and trying to move them with Alt + Up or Alt + Down, the row immediately after them is highlighted and moving with them.

Category
Application::Editor
Group
Platform:All
Status
Closed
Close date
2013-01-11 21:16
Assigned to
alpha0010
mortenmacfly 2013-01-06 08:57

This won't happen if you go to the exactly first row (press home until you are there), then press shift+cursor down to select the area you want to move, then move.

What you describe happens if you've selected the (invisible) EOL by accident, too - and this is correct behaviour.

Try and report back if that works.

alpha0010 2013-01-07 22:27

I have a patch that might make this act more as expected (not be too pedantic).

mariand 2013-01-09 02:37

Yes, it works, but only if I DO NOT use your recommendation to begin on very first position of the first row.But this is not the issue; I knew that if I select incomplete rows it works fine, because I don’t select the EOL of the next line. The problem is that if a selection of complete rows is made by the mouse in the area of the row numbers (or by your advice), Alt + Up / Down moves the next line, too.

When I work in the Eclipse or NetBeans editor, no such problems arise and their behavior is perfectly which I expect from Code::Blocks editor.

BTW copy/paste in Code::Blocks editor behaves also fine – why Alt + Up / Down would have different "correct behavior"?

alpha0010 2013-01-11 21:16

This bug is now fixed in HEAD.

Thank you for reporting it.