wg: Fix an issue that highlighted match-pattern maybe offset by 1 result.