Skip to content

Conversation

@AIksyer
Copy link

@AIksyer AIksyer commented Sep 5, 2025

fix #1672 The candidate box is in the wrong position
add lastCandidateCount to manage sticky state in WeaselPanel

The conditions for resetting the sticky state:

  1. When the input session ends (ctx.empty() is true)
  2. When the input position changes significantly (the position change exceeds the threshold)
  3. When the content of the candidate window is empty

@AIksyer
Copy link
Author

AIksyer commented Sep 5, 2025

DebugBefore

DebugBefore

DebugAfter

DebugAfter

@fxliang
Copy link
Contributor

fxliang commented Sep 5, 2025

还要要用形码测试,比如五笔,menu_size: 6,编码逐渐增加之后候选变少的情况下,m_sticky依然生效(同一次合成过程不会因为候选数量上下晃动)

另外,要lint,安装clang-format 18,用.\clang-format.ps1 -n格式化代码

@AIksyer
Copy link
Author

AIksyer commented Sep 5, 2025

@fxliang 我不知道该如何测试,我不会五笔,所以可能需要你来测试,目前拼音方案使用正常。

@AIksyer
Copy link
Author

AIksyer commented Sep 5, 2025

另外,我使用clang-format 19.1.1发现SystemTraySDK.cpp WeaselService.cpp imesetup.cpp存在格式问题,如果允许,我将push到仓库

@fxliang
Copy link
Contributor

fxliang commented Sep 9, 2025

另外,我使用clang-format 19.1.1发现SystemTraySDK.cpp WeaselService.cpp imesetup.cpp存在格式问题,如果允许,我将push到仓库

linter 不会频繁改,还是会保留在clang-format 18上

@AIksyer
Copy link
Author

AIksyer commented Sep 9, 2025

目前我使用全拼和小鹤双拼没发现bug,形码输入有待测试。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

notepad衍生记事本候选框位置问题

2 participants