Bug is as follows:
Given the following code in a V22 C/C++ mode window, and editor options set to paste lines "before"...
case GLFW_KEY_ESCAPE:
glfwSetWindowShouldClose( window, GL_TRUE );
break;
case GLFW_KEY_SPACE:
rotateX = 0;
rotateY = 0;
rotateZ = 0;
pointSize = 2.0f;
break;
case GLFW_KEY_W:
rotateX += 0.01;
break;
case GLFW_KEY_Q:
rotateX -= 0.01;
break;
case GLFW_KEY_S:
rotateY += 0.01;
break;
Selecting the following lines of code (using keyboard) so that cursor is at column 0 on following line ("case GLFW_KEY_Q:")...
case GLFW_KEY_W:
rotateX += 0.01;
break;
...when I then press ctrl-c (to copy), and subsequently press ctrl-v (to replicate, pasting the lines again), instead of the expected result I get the following result...
case GLFW_KEY_W:
rotateX += 0.01;
break;
case GLFW_KEY_W:
rotateX += 0.01;
break;
case GLFW_KEY_Q:
rotateX -= 0.01;
break;
...with the cursor between the "a" and "s" in case, on the " case GLFW_KEY_Q:" line. Obviously, from the point on, further pasting causes corruption of the code (another paste puts the pasted lines inbetween the "a" and "s", effectively truncating the prior line at "ca" and leaving the following lines beginning with "se GLFW_KEY_Q:").
I was unable to repeat this in either v22 RC2 or RC3 on Mac, so believe it may be something specific to the v22 RC2/3 linux64 version.
Please let me know if I can provide additional info to help track down this bug. IMO, v22 cannot ship in this state, corrupting code by simple multi-line pasting is atrocious misbehavior. I can probably figure out a way to take a video of the misbehavior or screencast or something if needed, and likewise can provide settings if needed (though settings were only slightly modified from default, and only big change w.r.t. cut/paste was to make multi-line pastes "before" mode instead of "after").
Thanks!
-John W.