core: fix display bug when scrolling in buffer on a filtered line (closes #240)