1

Fixing Yomichan loading the last file at the wrong offset

Former-commit-id: 38cefbd69bee88ea2b124f47c2c460021639c162
This commit is contained in:
Alex Yatskov 2013-11-20 09:12:53 -08:00
parent 4192d8189c
commit da91d8a45b

View File

@ -55,7 +55,7 @@ class Preferences(object):
def filePosition(self, filename): 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'] return 0 if len(matches) == 0 else matches[0]['position']