Fix a minor issue in ANSIString.rstrip().

This commit is contained in:
Griatch 2016-11-17 00:34:40 +01:00
parent f00fbb9d88
commit 2c6227774a

View file

@ -1146,6 +1146,7 @@ class ANSIString(with_metaclass(ANSIMeta, unicode)):
else:
ic -= 1
ir2 -= 1
rstripped = rstripped[::-1]
return ANSIString(raw[:ir2+1] + rstripped)
def join(self, iterable):