Fork me on GitHub

I’m messing with the hiwin module which highlights the current window by setting an overlay on all the other windows. But as it happens, when the overlay is applied to the repl and/or an eshell it causes the window content to scroll offscreen. So it’s basically useless this way.


As a hack, I want to scroll the repl window back to where it was. The elisp fn recenter-top-bottom can move the current buffer line to any specified window line. But which line? How do I determine which window line each buffer’s line is on?