fix continuation and line-highlighting problems when returning to top-level debug state from function debug state