Make "g" take the structure modifier into account.