Sublime Forum

Multiple selection behaviour change

#1

Hi,

I often use multiple selections in sublime 3 on my mac with copy & pasting.
Since recent update to sublime 3.2, the behaviour has changed.

If I:
-Use CMD+D to select several instances of a word
-Move the cursor to the side of the word to remove the highlighting
-Use CMD+C to copy the whole line at each cursor position
-Use CMD+V to paste the line

Previously only a single line would be copied at each cursor position. Now every line that has been copied is pasted below each cursor position.

Is this a bu

0 Likes

#2

I can confirm that this happens on Linux, MacOS and Windows in build 3200. However it also works the same way in build 3006 (from 2013), so it’s not a recent addition.

When you copy a whole line, you end up with the newline on the end as well; pasting with multiple cursors tries to paste one line at each cursor unless there are more lines than cursors (or vice versa), in which case the whole clipboard contents gets pasted at each cursor.

Since copying the line also copies the newline and results in essentially two lines copied per caret, I think this is behaving as expected.

0 Likes