mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Merge branch 'master' of https://github.com/kovidgoyal/calibre
This commit is contained in:
commit
8b3d451c29
@ -857,8 +857,10 @@ class WordsView(QTableView):
|
||||
self.verticalHeader().close()
|
||||
|
||||
def change_current_word_by(self, delta=1):
|
||||
rc = self.model().rowCount()
|
||||
if rc > 0:
|
||||
row = self.currentIndex().row()
|
||||
row = (row + delta + self.model().rowCount()) % self.model().rowCount()
|
||||
row = (row + delta + rc) % rc
|
||||
self.highlight_row(row)
|
||||
|
||||
def next_word(self):
|
||||
|
Loading…
x
Reference in New Issue
Block a user