Check preedit_text first before analyzing surrounding_text 32/111032/2
authorJi-hoon Lee <dalton.lee@samsung.com>
Thu, 19 Jan 2017 07:50:52 +0000 (16:50 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Fri, 20 Jan 2017 00:16:30 +0000 (16:16 -0800)
commit658b4305b98cb2a6bd7cbce6e9a5ead516f6bfea
treebf599fb4dce8fa3932f17408bdc8854f2bc32261
parentc64cbd9db9fb48b5418a3615ef7718d1f2f1273c
Check preedit_text first before analyzing surrounding_text

Since the "cursor_position==0" condition is evaluated first,
the immodule considers autocapitalization is required even
when imcontext has preedit_text. Thus modified to check the
existence of preedit_text first.

Change-Id: Ibaa73a68617eaf08b8de6cade0ab8e28c2d83ea4
ism/extras/wayland_immodule/wayland_imcontext.c