From 6a7e329a396df1d0e702e65302115e8218ae6862 Mon Sep 17 00:00:00 2001 From: Kelketek Rritaa Date: Mon, 24 Feb 2014 18:14:29 -0600 Subject: [PATCH] Whoops, overcorrected some of that for split(). --- src/utils/ansi.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/ansi.py b/src/utils/ansi.py index 003db6ca8c..85ecd8776a 100644 --- a/src/utils/ansi.py +++ b/src/utils/ansi.py @@ -772,7 +772,7 @@ class ANSIString(unicode): if next < 0: break # Get character codes after the index as well. - res.append(self[start:next]) + res.append(self[start:next] + self._get_interleving(next)) start = next + bylen maxsplit -= 1 # NB. if it's already < 0, it stays < 0 @@ -798,7 +798,7 @@ class ANSIString(unicode): if next < 0: break # Get character codes after the index as well. - res.append(self[next+bylen:end]) + res.append(self[next+bylen:end] + self._get_interleving(end)) end = next maxsplit -= 1 # NB. if it's already < 0, it stays < 0