3389:d4b376de26ae | 3390:7f46edbfcbc0 |
---|---|
1334 for i in range(index): | 1334 for i in range(index): |
1335 pos = self.positionAfter(pos) | 1335 pos = self.positionAfter(pos) |
1336 | 1336 |
1337 return pos | 1337 return pos |
1338 | 1338 |
1339 elif QSCINTILLA_VERSION() >= 0x020800: | 1339 elif QSCINTILLA_VERSION() >= 0x020700: |
1340 def positionFromLineIndex(self, line, index): | 1340 def positionFromLineIndex(self, line, index): |
1341 """ | 1341 """ |
1342 Public method to convert line and index to an absolute position. | 1342 Public method to convert line and index to an absolute position. |
1343 | 1343 |
1344 @param line line number (integer) | 1344 @param line line number (integer) |
1374 linpos = new_linpos | 1374 linpos = new_linpos |
1375 indx += 1 | 1375 indx += 1 |
1376 | 1376 |
1377 return lin, indx | 1377 return lin, indx |
1378 | 1378 |
1379 elif QSCINTILLA_VERSION() >= 0x020800: | 1379 elif QSCINTILLA_VERSION() >= 0x020700: |
1380 def lineIndexFromPosition(self, pos): | 1380 def lineIndexFromPosition(self, pos): |
1381 """ | 1381 """ |
1382 Public method to convert an absolute position to line and index. | 1382 Public method to convert an absolute position to line and index. |
1383 | 1383 |
1384 @param pos absolute position in the editor (integer) | 1384 @param pos absolute position in the editor (integer) |