FWIW:

Duplicate line will throw

ruby: warning: -K is specified; it is for 1.8 compatibility and may cause odd behavior
Duplicate Line:16:in `<main>': undefined method `[]' for nil:NilClass (NoMethodError)

when you have 2 cursors.

Hasn't really bothered me, but I thought it was relevant.

<3
G

On Fri, Dec 17, 2021 at 12:04 PM Quinn Comendant via TextMate <textmate@lists.macromates.com> wrote:

On 17 Dec 2021, at 5:06, Jacob Carlborg via TextMate wrote:

Why doesn’t it work on Ruby 2? It’s just a couple of lines and I don’t see anything in those lines that wouldn’t work on Ruby 1.8.

Ok, so I swear switching to ruby 2 didn't work yesterday! I was getting a undefined method '+' for nil:NilClass error.

But today, I replaced ruby18 for just ruby and now the Duplicate Line command works. 🤷‍♂️

I don't know what you did, but you fixed it. 😉

Quinn

_______________________________________________
TextMate mailing list -- textmate@lists.macromates.com
To unsubscribe send an email to textmate-leave@lists.macromates.com


--

Graham P Heath