-
-
Notifications
You must be signed in to change notification settings - Fork 357
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix #36 #175
fix #36 #175
Conversation
Can you upload screenshots ? |
I'm sorry that I don't know much about the code structure of this project. |
能用中文就用中文,整英文反而增加沟通成本。 |
src/ime.c
Outdated
@@ -270,6 +270,13 @@ void LCUI_InitIME(void) | |||
#endif | |||
} | |||
|
|||
void LCUIIME_SetCaret(LCUI_Pos pos) | |||
{ | |||
if (self.ime->handler.setcaret == NULL) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if 里就算只有一行语句也应该加花括号。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
只是处理 if 条件成立的情况,那可以写成:
if (self.ime->handler.setcaret) {
self.ime->handler.setcaret(pos);
}
src/platform/windows/windows_ime.c
Outdated
HWND hwnd = GetActiveWindow(); | ||
HIMC hIMC = ImmGetContext(hwnd); | ||
if (hIMC) { | ||
COMPOSITIONFORM Composition; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Composition 改成小写 composition
src/ime.c
Outdated
@@ -270,6 +270,13 @@ void LCUI_InitIME(void) | |||
#endif | |||
} | |||
|
|||
void LCUIIME_SetCaret(LCUI_Pos pos) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LCUI_Pos 是以前定义数据类型,现在已经尽量不用它了,请使用 x y 两个变量代替
src/platform/windows/windows_ime.c
Outdated
static void IME_SetCaret(LCUI_Pos pos) | ||
{ | ||
HWND hwnd = GetActiveWindow(); | ||
HIMC hIMC = ImmGetContext(hwnd); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hIMC 改成小写 himc
(PR updated) |
@1354092549 效果图发一下,最好是 gif 屏幕录像,windows 系统可以用 ScreenToGif 录制。 |
现在用的是 clang-format |
clang-format貌似不包括 命名检查? |
@1354092549 是的,只是个格式化工具,没检查功能。 |
IssueHunt Summary
Referenced issues
This pull request has been submitted to:
IssueHunt has been backed by the following sponsors. Become a sponsor