improve history
This commit is contained in:
parent
a427ccd130
commit
0e1e054416
@ -26,7 +26,7 @@ class command():
|
|||||||
if not self.env['runtime']['screenManager'].isDelta():
|
if not self.env['runtime']['screenManager'].isDelta():
|
||||||
return
|
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)
|
# 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
|
return
|
||||||
# filter unneded space on word begin
|
# filter unneded space on word begin
|
||||||
currDelta = self.env['screen']['newDelta']
|
currDelta = self.env['screen']['newDelta']
|
||||||
|
@ -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']) <=2:
|
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:
|
||||||
|
@ -165,7 +165,7 @@ class driver():
|
|||||||
screenContent = dirtyContent
|
screenContent = dirtyContent
|
||||||
if time.time() - timeout >= 0.4:
|
if time.time() - timeout >= 0.4:
|
||||||
break
|
break
|
||||||
time.sleep(0.0008)
|
time.sleep(0.007)
|
||||||
vcsa[currScreen].seek(0)
|
vcsa[currScreen].seek(0)
|
||||||
dirtyContent = vcsa[currScreen].read()
|
dirtyContent = vcsa[currScreen].read()
|
||||||
eventQueue.put({"Type":fenrirEventType.ScreenUpdate,"Data":None})
|
eventQueue.put({"Type":fenrirEventType.ScreenUpdate,"Data":None})
|
||||||
|
Loading…
Reference in New Issue
Block a user