core: fix filtered line displayed after /window scroll_beyond_end