aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2013-10-09 10:28:15 +0200
committerMattias Andrée <maandree@operamail.com>2013-10-09 10:28:15 +0200
commitdaefb5aec2f19dc1ad0ccca4affcc6c2afb72d10 (patch)
treec981bbb9aca5cf3bcec3a8e7426ebdf00b87f78a /src
parentmisc (diff)
downloadgpp-daefb5aec2f19dc1ad0ccca4affcc6c2afb72d10.tar.gz
gpp-daefb5aec2f19dc1ad0ccca4affcc6c2afb72d10.tar.bz2
gpp-daefb5aec2f19dc1ad0ccca4affcc6c2afb72d10.tar.xz
derp
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r--src/gpp.py4
1 files changed, 2 insertions, 2 deletions
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('')