projects
/
m17n
/
m17n-lib-cs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
16e6144
)
*** empty log message ***
author
ntakahas
<ntakahas>
Tue, 30 Jun 2009 12:26:12 +0000
(12:26 +0000)
committer
ntakahas
<ntakahas>
Tue, 30 Jun 2009 12:26:12 +0000
(12:26 +0000)
frontsensitive.cs
patch
|
blob
|
history
diff --git
a/frontsensitive.cs
b/frontsensitive.cs
index
587d903
..
86193c8
100644
(file)
--- a/
frontsensitive.cs
+++ b/
frontsensitive.cs
@@
-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;
}