Created
May 27, 2018 10:26
-
-
Save MightyPork/6b93f56b404e526268ac133f1a783afd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -ura mozc.orig/src/prediction/zero_query_dict.h mozc/src/prediction/zero_query_dict.h | |
--- mozc.orig/src/prediction/zero_query_dict.h 2018-05-27 12:14:39.000000000 +0200 | |
+++ mozc/src/prediction/zero_query_dict.h 2018-05-27 12:16:53.158743824 +0200 | |
@@ -132,6 +132,17 @@ | |
return tmp; | |
} | |
+ iterator &operator--() { | |
+ ptr_ -= kTokenByteSize; | |
+ return *this; | |
+ } | |
+ | |
+ iterator operator--(int) { | |
+ const iterator tmp(ptr_, string_array_); | |
+ ptr_ -= kTokenByteSize; | |
+ return tmp; | |
+ } | |
+ | |
iterator &operator+=(ptrdiff_t n) { | |
ptr_ += n * kTokenByteSize; | |
return *this; | |
diff -ura mozc.orig/src/unix/ibus/property_handler.cc mozc/src/unix/ibus/property_handler.cc | |
--- mozc.orig/src/unix/ibus/property_handler.cc 2018-05-27 12:14:39.000000000 +0200 | |
+++ mozc/src/unix/ibus/property_handler.cc 2018-05-27 12:17:47.877919034 +0200 | |
@@ -80,7 +80,7 @@ | |
// On IBus 1.4.x, IBus expects that an IME should always be turned on and | |
// IME on/off keys are handled by IBus itself rather than each IME. | |
#if IBUS_CHECK_VERSION(1, 5, 0) | |
-const bool kActivatedOnLaunch = false; | |
+const bool kActivatedOnLaunch = true; | |
#else | |
const bool kActivatedOnLaunch = true; | |
#endif // IBus>=1.5.0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment