News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

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.