Fix for Python out-of-range exception when accessing Bindings tab

This commit is contained in:
ridiculousfish
2014-02-09 20:19:04 -08:00
parent 9b9ee338c1
commit 77dbaf3aef

View File

@@ -291,7 +291,8 @@ class BindingParser:
def get_char(self):
""" Gets next character from buffer """
if self.index >= len(self.buffer):
return '\0'
c = self.buffer[self.index]
self.index += 1
return c