less: add a function to detect when display is at end of file