Skip to content

Commit

Permalink
Update CandidateList.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
fxliang authored Dec 20, 2023
1 parent 99cc6e7 commit b8dee7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion WeaselTSF/CandidateList.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ void WeaselTSF::_HandleMouseHoverEvent(const size_t index)
// maybe replace with new api in the future
weasel::KeyEvent ke{ 0, 0 };
ke.keycode = current_select < index ? ibus::Down : ibus::Up;
int inc = index > current_select ? 1 : (index < current_select ) ? -1 : 0;
int inc = index > current_select ? 1 : -1;
if (_cand->GetIsReposition()) inc = -inc;
UINT gap = abs((INT)((INT)index - (INT)current_select));
for(UINT i=0; i < gap; i++)
Expand Down

0 comments on commit b8dee7e

Please sign in to comment.