1537 @return absolute position in the editor (integer) |
1537 @return absolute position in the editor (integer) |
1538 """ |
1538 """ |
1539 pos = self.SendScintilla(QsciScintilla.SCI_POSITIONFROMLINE, line) |
1539 pos = self.SendScintilla(QsciScintilla.SCI_POSITIONFROMLINE, line) |
1540 |
1540 |
1541 # Allow for multi-byte characters |
1541 # Allow for multi-byte characters |
1542 for i in range(index): |
1542 for _ in range(index): |
1543 pos = self.positionAfter(pos) |
1543 pos = self.positionAfter(pos) |
1544 |
1544 |
1545 return pos |
1545 return pos |
1546 |
1546 |
1547 elif QSCINTILLA_VERSION() >= 0x020700: |
1547 elif QSCINTILLA_VERSION() >= 0x020700: |