aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
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('')