improve history
This commit is contained in:
@@ -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']
|
||||
|
@@ -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:
|
||||
|
Reference in New Issue
Block a user