improve stuff

This commit is contained in:
chrys 2017-09-25 21:33:02 +02:00
parent 0e1e054416
commit 7e9494c19f

View File

@ -23,8 +23,8 @@ class command():
if not self.env['runtime']['screenManager'].isDelta(): if not self.env['runtime']['screenManager'].isDelta():
return return
# this must be a keyecho or something # this must be a keyecho or something
if len(self.env['screen']['newDelta'].strip(' \n\t')) >= 1: if len(self.env['screen']['newDelta'].strip(' \n\t')) <= 1:
if abs(self.env['screen']['newCursor']['x'] - self.env['screen']['oldCursor']['x']) > 1: if abs(self.env['screen']['newCursor']['x'] - self.env['screen']['oldCursor']['x']) >= 1:
# if len(self.env['screen']['newDelta'].strip(' \n\t0123456789')) <= 2: # if len(self.env['screen']['newDelta'].strip(' \n\t0123456789')) <= 2:
return return
if abs(self.env['screen']['newCursor']['y'] - self.env['screen']['oldCursor']['y']) == 1: if abs(self.env['screen']['newCursor']['y'] - self.env['screen']['oldCursor']['y']) == 1: