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