Megaxela/QCodeEditor

Bug: double clicking needs tons of undos

Opened this issue · 1 comments

ouuan commented
  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.

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