[uim-commit] r232 - trunk/uim
tkng@freedesktop.org
tkng@freedesktop.org
Mon Jan 10 14:35:34 PST 2005
Author: tkng
Date: 2005-01-10 14:35:31 -0800 (Mon, 10 Jan 2005)
New Revision: 232
Modified:
trunk/uim/m17nlib.c
Log:
* uim/m17nlib.c:
-(preedit_changedp): Fixed wrong return value. This may cause a problem
with m17n-lib 1.1.0 or lower. (I didn't checked.)
-(get_right_of_cursor): Fixed an careless bug.
-(get_nr_candidates): Removed unused variable.
Modified: trunk/uim/m17nlib.c
===================================================================
--- trunk/uim/m17nlib.c 2005-01-10 22:10:42 UTC (rev 231)
+++ trunk/uim/m17nlib.c 2005-01-10 22:35:31 UTC (rev 232)
@@ -288,9 +288,9 @@
return uim_scm_f();
}
if(ic->preedit_changed == 1) {
- return uim_scm_f();
- } else {
return uim_scm_t();
+ } else {
+ return uim_scm_f();
}
}
@@ -341,7 +341,7 @@
p = buf;
for(i=0; i<ic->cursor_pos ;i++) {
- p = (unsigned char *)uim_scm_make_str("");
+ p = m17nlib_utf8_find_next_char(p);
}
buflen = strlen((char *)p);
buf_ = uim_scm_make_str((char *)p);
@@ -608,7 +608,6 @@
get_nr_candidates(uim_lisp id_)
{
MPlist *group;
- MPlist *elm;
int result = 0;
int id = uim_scm_c_int(id_);
MInputContext *ic = ic_array[id].mic;
More information about the Uim-commit
mailing list