Author Topic: patch for codecomplete plugin(bug)  (Read 4759 times)

Offline mmkider

  • Almost regular
  • **
  • Posts: 150
patch for codecomplete plugin(bug)
« on: November 28, 2008, 04:08:26 pm »
Code
Index: nativeparser.cpp
===================================================================
--- nativeparser.cpp (revision 5323)
+++ nativeparser.cpp (working copy)
@@ -1136,8 +1136,8 @@
             --x;
 
         if (x > 0 &&
-            (line.GetChar(x) == '>' && line.GetChar(x - 1) == '-') ||
-            (line.GetChar(x) == ':' && line.GetChar(x - 1) == ':'))
+            ((line.GetChar(x) == '>' && line.GetChar(x - 1) == '-') ||
+            (line.GetChar(x) == ':' && line.GetChar(x - 1) == ':')))
         {
             x -= 2;
             repeat = true;

look it. 
it lose '(' and ')'

:lol:

Offline DrewBoo

  • Multiple posting newcomer
  • *
  • Posts: 110
Re: patch for codecomplete plugin(bug)
« Reply #1 on: December 05, 2008, 05:54:01 pm »
Code
Index: nativeparser.cpp
===================================================================
--- nativeparser.cpp (revision 5323)
+++ nativeparser.cpp (working copy)
@@ -1136,8 +1136,8 @@
             --x;
 
         if (x > 0 &&
-            (line.GetChar(x) == '>' && line.GetChar(x - 1) == '-') ||
-            (line.GetChar(x) == ':' && line.GetChar(x - 1) == ':'))
+            ((line.GetChar(x) == '>' && line.GetChar(x - 1) == '-') ||
+            (line.GetChar(x) == ':' && line.GetChar(x - 1) == ':')))
         {
             x -= 2;
             repeat = true;

look it. 
it lose '(' and ')'

:lol:


Yep.  Looks like a typo to me.