[uim-commit] r1906 - trunk/uim

ekato at freedesktop.org ekato at freedesktop.org
Mon Oct 31 05:56:38 PST 2005


Author: ekato
Date: 2005-10-31 05:56:34 -0800 (Mon, 31 Oct 2005)
New Revision: 1906

Modified:
   trunk/uim/skk.c
Log:
* uim/skk.c (make_comp_array_from_cache) : Don't use pre-commited
  entry for completion.


Modified: trunk/uim/skk.c
===================================================================
--- trunk/uim/skk.c	2005-10-31 11:51:08 UTC (rev 1905)
+++ trunk/uim/skk.c	2005-10-31 13:56:34 UTC (rev 1906)
@@ -1664,7 +1664,9 @@
     if (/* string 's' is part of sl->head */
 	!strncmp(sl->head, s, strlen(s)) && strcmp(sl->head, s) &&
 	/* and sl is okuri-nasi line */
-	(sl->okuri_head == '\0')) {
+	sl->okuri_head == '\0' &&
+	/* use commited entry only */
+	sl->need_save == 1) {
       ca->nr_comps++;
       ca->comps = realloc(ca->comps, sizeof(char *) * ca->nr_comps);
       ca->comps[ca->nr_comps - 1] = strdup(sl->head);



More information about the uim-commit mailing list