Skip to content


Subversion checkout URL

You can clone with
Download ZIP


String interpolation with #{variable} in editor does not work properly #114

PragTob opened this Issue · 3 comments

2 participants


What I mean by doesn't work is that I can't type it in. For instance I wanna type this:

name = ask "What is your name?"
alert "Hello, #{name}!"

However I get stuck at:

name = ask "What is your name?"
alert "Hello, #{name}

Because I can't move the cursor behind } with the keys (right arrow key). I can with the mouse but than I can't type in a single character and if I hit backspace the bracket just gets yellow highlighting. Delete before the bracket also doesn't work. The only thing that works is first writing:

alert "Hello, "

and then inserting the String interpolation. I know the tutorial suggests writing it another way but it is still odd. I suspect that it is supposed to be some editing help for not deleting blocks (since you can delete the first bracket and then both are gone).

edit: If the description is unclear I'll try to make a screencast, please just tell me :-)


This is totally reproducible. I never noticed because I typed the } anyway, since I'm not used to my editor inserting the character...

This probably has to do with us keeping that string buffer. It gets the length wrong or something...


Ok thanks for reproducing and the hint :-) Will take a look when taking a stab at that code :-D



I think we really need to figure out if it's possible to just do these things in a regular text area. The lack of two finger scrolling (#24) and internationationalization (#14) is pretty rough.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.