fixed small typo

This commit is contained in:
Manuel Cortez 2022-11-08 12:45:40 -06:00
parent aa3ca82f25
commit cd5b71a26e
No known key found for this signature in database
GPG Key ID: 9E0735CA15EFE790

View File

@ -247,7 +247,7 @@ class BaseBuffer(base.Buffer):
def get_item(self):
index = self.buffer.list.get_selected()
if index > 0 and self.session.db.get(self.name) != None:
if index > -1 and self.session.db.get(self.name) != None:
return self.session.db[self.name][index]
def can_share(self):