mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -04:00
...
This commit is contained in:
parent
1e2ec2898f
commit
ecbe9963ab
@ -217,6 +217,7 @@ class Editor(QMainWindow):
|
|||||||
c = self.editor.textCursor()
|
c = self.editor.textCursor()
|
||||||
char = ''
|
char = ''
|
||||||
if not c.atStart():
|
if not c.atStart():
|
||||||
|
c.clearSelection()
|
||||||
c.setPosition(c.position()-1, c.KeepAnchor)
|
c.setPosition(c.position()-1, c.KeepAnchor)
|
||||||
char = unicode(c.selectedText())
|
char = unicode(c.selectedText())
|
||||||
return (c.blockNumber() + 1, c.positionInBlock(), char)
|
return (c.blockNumber() + 1, c.positionInBlock(), char)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user