- write three "foo;"s in the editor;
- double click the word "foo", the three "foo"s will be highlighted.
- Press "Ctrl+Z" to undo the double-clicking, you need six "Ctrl+Z"s in total.
Double-clicking for highlighting the same words shouldn't affect the undo history.
OS: Windows 10
I'm using QCodeEditor in coder3101/cp-editor2.