Fix marker positioning if code scrolls horizontally