improve history

This commit is contained in:
chrys 2017-09-25 21:27:00 +02:00
parent a427ccd130
commit 0e1e054416
3 changed files with 4 additions and 4 deletions

View File

@ -26,7 +26,7 @@ class command():
if not self.env['runtime']['screenManager'].isDelta():
return
# big changes are no char (but the value is bigger than one maybe the differ needs longer than you can type, so a little strange random buffer for now)
if len(self.env['screen']['newDelta']) > 3:
if len(self.env['screen']['newDelta'].strip(' \n\t')) > 1:
return
# filter unneded space on word begin
currDelta = self.env['screen']['newDelta']

View File

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

View File

@ -165,7 +165,7 @@ class driver():
screenContent = dirtyContent
if time.time() - timeout >= 0.4:
break
time.sleep(0.0008)
time.sleep(0.007)
vcsa[currScreen].seek(0)
dirtyContent = vcsa[currScreen].read()
eventQueue.put({"Type":fenrirEventType.ScreenUpdate,"Data":None})