fix tab completion

This commit is contained in:
Chrys 2019-09-06 22:49:50 +02:00
parent 13742ba980
commit 32794f2fe5

View File

@ -18,7 +18,7 @@ class command():
def run(self): def run(self):
# try to detect the tab completion by cursor change # try to detect the tab completion by cursor change
xMove = self.env['screen']['newCursor']['x'] - self.env['screen']['oldCursor']['x'] xMove = self.env['screen']['newCursor']['x'] - self.env['screen']['oldCursor']['x']
if xMove > 0: if xMove <= 0:
return return
if self.env['runtime']['inputManager'].getShortcutType() in ['KEY']: if self.env['runtime']['inputManager'].getShortcutType() in ['KEY']:
if not (self.env['runtime']['inputManager'].getLastDeepestInput() in [['KEY_TAB']]): if not (self.env['runtime']['inputManager'].getLastDeepestInput() in [['KEY_TAB']]):