Sublime Forum

*SOLVED* Build 2126 vertical selection insertion bug

#1

Interesting bug.

I was editing a block with a vertical selection. I had a list of vars in a column and wanted to preface them with a var name and operator for concatenation. I then wanted to add a suffix to the end of each line.

Inserting as I moved the cursor right, paste the length of the shorter strings, the cursor on those lines wrapped to the beginning of the line.

I have a pretty good explanation here.

screencast.com/t/yTZ0FeeQDFrI

I think the correct action here is the vertical select should stay at the end of each line and insert at that point (custom for each line.)

0 Likes

#2

This is by design. Column selection isn’t a separate mode, it’s simply a way to setup multiple carets/selections in a vertical manner. If you above example, if you pressed end (command+right on OSX), rather than the right arrow, you would have gotten the behavior you’re after.

0 Likes

#3

Ah, tyvm. I’m still learning.

Do you think what did occur should be prevented? I agree the End key is a good thing. Maybe when you hit the end of the shorted line contained in the selection, do not respond to rt-arrow.

0 Likes