*** empty log message ***
[m17n/m17n-lib-cs.git] / frontsensitive.cs
index 587d903..86193c8 100644 (file)
@@ -134,11 +134,14 @@ public class Test
 
     DebugDump (3);
     // sensitivity for insertion
-    if (from2 > 0 && prop[from2 - 1] == prop[from2] && prop[from2] != -1)
+    if (prop[from2] != -1)
       {
        n = end[prop[from2]];
-       for (i = prop[from2 - 1] == prop[from2] ? prop[from2] : from2;
-            i < n; i++)
+       if (from2 > 0 && prop[from2 - 1] == prop[from2])
+         i = prop[from2];
+       else
+         i = from2;
+       for (; i < n; i++)
          prop[i] = -1;
       }