mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-01 18:21:12 -03:00
Fix for Python out-of-range exception when accessing Bindings tab
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user