From daefb5aec2f19dc1ad0ccca4affcc6c2afb72d10 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Wed, 9 Oct 2013 10:28:15 +0200 Subject: derp MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/gpp.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/gpp.py b/src/gpp.py index 74e6ac4..b14e538 100644 --- a/src/gpp.py +++ b/src/gpp.py @@ -98,8 +98,8 @@ lineno = -1 for line in bashed: no = -1 if line.startswith('\033'): - no = int(line[:1].split('\033')[0]) - line = '\033'.join(line[:1].split('\033')[1:]) + no = int(line[1:].split('\033')[0]) + line = '\033'.join(line[1:].split('\033')[1:]) if no > lineno: while no != lineno + 1: pped.append('') -- cgit v1.2.3-70-g09d2