News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

patch for codecomplete plugin(bug)

Started by mmkider, November 28, 2008, 04:08:26 PM

Previous topic - Next topic

mmkider


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:

DrewBoo

Quote from: mmkider on November 28, 2008, 04:08:26 PM

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.