Love this product by the way. The most amazing thing on the internet for developing stuff imo
I’ve been working on a private project and when I undo an edit it loses characters (not from the text worked on but from other elements) e.g. two instances of ‘var’ changed to ‘ar’ when I had never deleted those vs before. Didn’t know whether this was a known bug so thought I’d report it. Am using a desktop text editor to work in and pasting code in until it stops, so I have a workaround.
@etamponi, I assume that what I’m experiencing is related to this issue, so if it helps at all, I’ve just made a little screen recording of the kind of behaviour I’m encountering when I use Command+Z to undo.
In the attached recording, after I type “fixed”, all I’m doing is pressing Command+Z repeatedly. And just to be clear, where “r”, “taticr” and “xedsf” appear on screen, none of these are values that I’ve previously entered for the CSS property shown.
If it helps to know, I’m using Chrome (Version 65.0.3325.162 (Official Build) (64-bit)) on macOS Sierra, 10.12.6. And if it further assists, I’ve forked the project I was working on when I made the screen recording, and the forked version is here.
(But finally, allow me to echo @storyjack3r’s gratitude for Glitch!)
By default when you comment out more than one line of code with JavaScript each line comment is done in one function, so when you attempt to undo a comment it will undo one line at a time. To uncomment it all just use the comment command again while selecting the commented code.
Of course, different programs have different custom functions, but I know that Glitch does this as I have run into that issue myself.