strip whitespace

This commit is contained in:
Chrys
2019-09-06 22:16:00 +02:00
parent d6498f053c
commit 13742ba980
7 changed files with 18 additions and 28 deletions

View File

@ -36,7 +36,6 @@ class command():
# is there any change?
if not self.env['runtime']['screenManager'].isDelta():
return
# filter unneded space on word begin
currDelta = self.env['screen']['newDelta']
if len(currDelta.strip()) != len(currDelta) and \

View File

@ -15,7 +15,6 @@ class command():
pass
def getDescription(self):
return 'No Description found'
def run(self):
# try to detect the tab completion by cursor change
xMove = self.env['screen']['newCursor']['x'] - self.env['screen']['oldCursor']['x']
@ -32,7 +31,6 @@ class command():
return
if not xMove == len(self.env['screen']['newDelta']):
return
# filter unneded space on word begin
currDelta = self.env['screen']['newDelta']
if len(currDelta.strip()) != len(currDelta) and \