[show-hint addon] Fix offset computation when moving list above cursor

Issue #2663