Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports
Path: blob/main/chinese/gcin/files/patch-gtab-buf.cpp
18160 views
1
--- gtab-buf.cpp.orig 2020-03-14 07:23:09 UTC
2
+++ gtab-buf.cpp
3
@@ -1253,7 +1253,7 @@ gboolean gtab_pre_select_shift(KeySym key, int kbstate
4
// If the key(123) is not defined as gtab keys, the shift keys(!@#) should be used for punc, not preselect
5
int c;
6
char *p;
7
- if (p=strchr(cur_inmd->selkey, key)) {
8
+ if ((p=strchr(cur_inmd->selkey, key))) {
9
c = p - cur_inmd->selkey;
10
return gtab_pre_select_idx(c);
11
} else
12
13