mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-23 02:35:26 +01:00
...
This commit is contained in:
parent
1e2ec2898f
commit
ecbe9963ab
1 changed files with 1 additions and 0 deletions
|
|
@ -217,6 +217,7 @@ def cursor_position(self):
|
|||
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…
Reference in a new issue