[Github-comments] [geany/geany] Add an editor option to enable IME's candidate window display inline (#1514)
Colomban Wendling
notifications at xxxxx
Sat Jun 10 20:26:00 UTC 2017
b4n requested changes on this pull request.
Not tested yet, but looks almost good, see comments.
> @@ -137,6 +137,7 @@ typedef struct GeanyEditorPrefs
gboolean long_line_enabled;
gint autocompletion_update_freq;
gint scroll_lines_around_cursor;
+ gboolean ime_interaction; /* input method editor's candidate window behaviour */
This should be an int and use on of the Scintilla constants, `SC_IME_WINDOWED` or `SC_IME_INLINE`, so it can be easily extended in the future, and have a semantic meaning.
> @@ -255,6 +255,8 @@ static void init_pref_groups(void)
"extract_filetype_regex", GEANY_DEFAULT_FILETYPE_REGEX);
stash_group_add_boolean(group, &search_prefs.replace_and_find_by_default,
"replace_and_find_by_default", TRUE);
+ stash_group_add_boolean(group, &editor_prefs.ime_interaction,
+ "editor_ime_inline", TRUE);
Same here, should be
```C
stash_group_add_integer(group, &editor_prefs.ime_interaction,
"editor_ime_interaction", SC_IME_WINDOWED);
```
And better keep the current behavior as default unless we have a compelling set of data that the current default is a problem for everyone.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/1514#pullrequestreview-43305226
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20170610/86380867/attachment.html>
More information about the Github-comments
mailing list