vscode icon indicating copy to clipboard operation
vscode copied to clipboard

[Bug] Replace with characters like 'É'

Open Nimzozo opened this issue 10 years ago • 4 comments

I was using the replacement tool (CTRL + H). I tried to replace the string 'É' by 'É' (ALT + 0201) but it was instead replaced by another string (I guess my previous replacement string).

Nimzozo avatar Jan 17 '16 17:01 Nimzozo

@Nimzozo I cannot reproduce. Is there something more to it?

replace-accent

alexdima avatar Jan 18 '16 15:01 alexdima

Ok, this is very strange :

I can reproduce the bug easily, but I was curious you couldn't. So I checked and found 2 situations :

  • if you copy/paste 'É' in the replacement text box, it works correctly.
  • if you type ALT + 0201 in the replacement text box, there comes the bug.

Nimzozo avatar Jan 18 '16 20:01 Nimzozo

@Nimzozo Sorry about me cheating and pasting it in when trying to repro!

Indeed the find state would not update on "input" events, only on "keydown" events, which is incorrect.

Thank you for reporting this, it is a great find! :heart:

alexdima avatar Jan 18 '16 20:01 alexdima

You're welcome. :smile:

Nimzozo avatar Jan 18 '16 21:01 Nimzozo