[uim-commit] r399 - trunk/uim
ekato at freedesktop.org
ekato at freedesktop.org
Sun Jan 30 03:09:31 PST 2005
Author: ekato
Date: 2005-01-30 03:09:28 -0800 (Sun, 30 Jan 2005)
New Revision: 399
Modified:
trunk/uim/skk-dic.c
Log:
* uim/skk-dic.c (next_cand_slash) : Minor bug fix of r393.
Modified: trunk/uim/skk-dic.c
===================================================================
--- trunk/uim/skk-dic.c 2005-01-30 08:08:49 UTC (rev 398)
+++ trunk/uim/skk-dic.c 2005-01-30 11:09:28 UTC (rev 399)
@@ -285,14 +285,16 @@
next_cand_slash(char *str)
{
int p = 0;
+ int i = 0;
while (*str && (*str != '/' || p == 1)) {
- if (*str == '[' && (*(str - 1) == '\0' || *(str - 1) == '/')) {
+ if (*str == '[' && i == 0) {
p = 1;
}
if (p == 1 && *str == ']' && *(str + 1) == '/') {
p = 0;
}
str++;
+ i++;
}
return str;
}
More information about the Uim-commit
mailing list