diff options
author | JSDurand <mmemmew@gmail.com> | 2021-12-06 13:43:09 +0800 |
---|---|---|
committer | JSDurand <mmemmew@gmail.com> | 2021-12-06 13:43:09 +0800 |
commit | fa46121121a2a88040cb3fcdd8dc4d4df6b016dd (patch) | |
tree | 991445229638f6b69d000a87b4b34a61d4580d10 | |
parent | 88560a1b292c74accecdf8f46de9ff84a65d3e9b (diff) |
view-conf: fix cursor when moving paragraphs.
* view-conf.el (durand-scroll-next-paragraph): Fix cursor when moving
paragraphs, so that the cursor stays at the top of the window.
-rw-r--r-- | view-conf.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/view-conf.el b/view-conf.el index 5c832e4..69f52a5 100644 --- a/view-conf.el +++ b/view-conf.el @@ -280,7 +280,8 @@ options to choose from." (forward-line -1)) (setq arg (1+ arg))))) (setq pos (point))) - (set-window-start (selected-window) pos))) + (set-window-start (selected-window) pos) + (goto-char pos))) ;;;###autoload (defun durand-scroll-prev-paragraph (&optional arg) |