mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
cef55aa72c
commit
b75abd6aa3
@ -291,7 +291,7 @@ class TextEdit(PlainTextEdit):
|
||||
pos = c.position()
|
||||
c.beginEditBlock()
|
||||
c.clearSelection()
|
||||
c.select(c.Document)
|
||||
c.select(QTextCursor.SelectionType.Document)
|
||||
c.insertText(unicodedata.normalize('NFC', text))
|
||||
c.endEditBlock()
|
||||
c.setPosition(min(pos, len(text)))
|
||||
|
Loading…
x
Reference in New Issue
Block a user