Megaxela / QCodeEditor

Qt Code Editor widget.
MIT License
383 stars 118 forks source link

Bug: double clicking needs tons of undos #20

Open ouuan opened 4 years ago

ouuan commented 4 years ago
  1. write three "foo;"s in the editor;
  2. double click the word "foo", the three "foo"s will be highlighted.
  3. 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.

Megaxela commented 4 years ago

I guess it's QTextEditor bug. But I'll try to find some workaround.