11
  1. enter image description here
  2. enter image description here
  3. Like this: enter image description here

Once, I read somewhere (hence, this is may be a duplicate post, but I cannot find no one else reporting it right now) this problem is because when you paste something on StackExchange sites, an entry on the undo list is not created for the pasted item, then, when undoing the last thing, it will undo the pasted item and some other things you did before, i.e., the last undo event on the stack.

Other sites I use as GitHub, does not have such problem. This undo thing problem has become extremely annoying after years using StackExchange sites. I never seem anything close to this behavior anywhere else in the world so far. If you know something else which also has this "feature", please, comment.

I am not sure if this is a bug or if it is like this by design. If it is by design because someone which works on StackExchanges likes it (I am definitely not sure why they like it), then, this post would be a feature request for an user's setting, allowing us to change this really "awesome" feature.

In case someone thinks I am trolling, here is a video reproducing the problem:

enter image description here

If you need more detailed instructions, videos or tutorials about how to reproduce this awesome "feature", please, do not hesitate to ask!

Here, I am using Google Chrome: Version 70.0.3538.110 (Official Build) (64-bit)

If you think GitHub is also bugged/broken like this, here is another video showing you I am not trolling and GitHub works wonderfully:

enter image description here

Expected Behavior

More fiercely, using the GitHub interface, let us call the next video as an expected behavior for StackExchange websites editor:

enter image description here

Actual Behavior

Re-posting here again, the Actual Behavior of StackExchange Websites, so you can closely compare both, Expected Behavior versus Actual Behavior:

enter image description here

2

There is a way, hit Ctrl-Z then Ctrl-Shift-Z, so undo then redo, that makes it work.

at least works on Windows 8...

redo makes small redos, so basically 1-0.5=0.5 so that will make a half of 1 undo.

  • 1
    Thanks, I had used this technique a long time ago, but I had completely forgot about this. Instead of manually doing this, I would prefer to create same browser extension or script which detects the StackExchange editor and does this automatically. – user Dec 20 '18 at 13:22
  • @user Your welcome, happy to help, please accept tho :-), and up-vote. – U10-Forward Dec 20 '18 at 23:57
1

If you type a large bit of code without pausing at all, hitting undo will undo the entire section of code you just typed. However, if you pause for a few seconds while you're writing the code, it should only undo the section after you paused. I'm not sure if this is intentional or not, but that's how it works on my computer and browser.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .