branch: externals/topspace commit d8ba41b20e6235ab4fd1eb1aa26d947735a89386 Author: Trevor Pogue <pogu...@mcmaster.ca> Commit: Trevor Pogue <pogu...@mcmaster.ca>
Make topspace-enable and topspace-disable private functions --- topspace.el | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/topspace.el b/topspace.el index fe11328347..00045be10e 100644 --- a/topspace.el +++ b/topspace.el @@ -307,8 +307,7 @@ return unexpected value when END is in column 0. This fixes that issue." (defun topspace--post-command () "Gradually reduce top space before the cursor will move past the bottom." - (when (and (eq (get-buffer-window (current-buffer)) (selected-window)) - (= topspace--pre-command-window-start 1) + (when (and (= topspace--pre-command-window-start 1) (< (- (line-number-at-pos (point)) (line-number-at-pos topspace--pre-command-point)) (topspace--window-height)))