[gnome-code-assistance] [backends/c] Fix off by one slice of string



commit 9ba85c0fb3ba1047970973d28a5805b82e7b60eb
Author: Jesse van den Kieboom <jessevdk gmail com>
Date:   Fri Nov 8 13:03:13 2013 +0100

    [backends/c] Fix off by one slice of string

 backends/c/makefileintegration.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/backends/c/makefileintegration.py b/backends/c/makefileintegration.py
index 0c18306..81f8533 100644
--- a/backends/c/makefileintegration.py
+++ b/backends/c/makefileintegration.py
@@ -232,7 +232,7 @@ class MakefileIntegration:
             return []
 
         try:
-            epos = outstr.index(os.linesep, pos) - 1
+            epos = outstr.index(os.linesep, pos)
         except ValueError:
             epos = len(outstr)
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]