Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 103472
Collapse All | Expand All

(-)qimhangul-0.0.2.orig/hangulinputcontext.c (+19 lines)
Lines 372-377 Link Here
372
}
372
}
373
373
374
static inline void
374
static inline void
375
hangul_ic_append_commit_string(HangulInputContext *hic, wchar_t ch)
376
{
377
    unsigned int i;
378
379
    for (i = 0; i < N_ELEMENTS(hic->commit_string); i++) {
380
	if (hic->commit_string[i] == L'\0')
381
	    break;
382
    }
383
384
    if (i + 1 < N_ELEMENTS(hic->commit_string)) {
385
	hic->commit_string[i++] = ch;
386
	hic->commit_string[i] = L'\0';
387
    }
388
}
389
390
static inline void
375
hangul_ic_save_commit_string(HangulInputContext *hic)
391
hangul_ic_save_commit_string(HangulInputContext *hic)
376
{
392
{
377
    if (hic->output_mode == HANGUL_OUTPUT_JAMO) {
393
    if (hic->output_mode == HANGUL_OUTPUT_JAMO) {
Lines 532-537 Link Here
532
		}
548
		}
533
	    }
549
	    }
534
	}
550
	}
551
    } else if (ch > 0) {
552
	hangul_ic_save_commit_string(hic);
553
	hangul_ic_append_commit_string(hic, ch);
535
    } else {
554
    } else {
536
	hangul_ic_save_commit_string(hic);
555
	hangul_ic_save_commit_string(hic);
537
	return false;
556
	return false;

Return to bug 103472