Skip to content

Commit

Permalink
fix: ascii tip by context empty not aux empty
Browse files Browse the repository at this point in the history
  • Loading branch information
fxliang committed Aug 22, 2023
1 parent 1902c0f commit 87351ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion WeaselUI/WeaselPanel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -867,7 +867,7 @@ void WeaselPanel::MoveTo(RECT const& rc)
{
if(!m_layout) return; // avoid handling nullptr in _RepositionWindow
// if ascii_tip_follow_cursor set, move tip icon to mouse cursor
if(m_style.ascii_tip_follow_cursor && m_ctx.aux.empty() && (!m_status.composing) && m_layout->ShouldDisplayStatusIcon()) { // ascii icon
if(m_style.ascii_tip_follow_cursor && m_ctx.empty() && (!m_status.composing) && m_layout->ShouldDisplayStatusIcon()) { // ascii icon
POINT p;
::GetCursorPos(&p);
RECT irc{p.x-STATUS_ICON_SIZE, p.y-STATUS_ICON_SIZE, p.x, p.y};
Expand Down

0 comments on commit 87351ca

Please sign in to comment.