Fixing Yomichan loading the last file at the wrong offset
Former-commit-id: 38cefbd69bee88ea2b124f47c2c460021639c162
This commit is contained in:
parent
4192d8189c
commit
da91d8a45b
@ -55,7 +55,7 @@ class Preferences(object):
|
||||
|
||||
|
||||
def filePosition(self, filename):
|
||||
matches = filter(lambda f: f['path'] != filename, self['recentFiles'])
|
||||
matches = filter(lambda f: f['path'] == filename, self['recentFiles'])
|
||||
return 0 if len(matches) == 0 else matches[0]['position']
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user