summaryrefslogtreecommitdiff
path: root/view-conf.el
diff options
context:
space:
mode:
authorJSDurand <mmemmew@gmail.com>2021-12-06 13:43:09 +0800
committerJSDurand <mmemmew@gmail.com>2021-12-06 13:43:09 +0800
commitfa46121121a2a88040cb3fcdd8dc4d4df6b016dd (patch)
tree991445229638f6b69d000a87b4b34a61d4580d10 /view-conf.el
parent88560a1b292c74accecdf8f46de9ff84a65d3e9b (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.
Diffstat (limited to 'view-conf.el')
-rw-r--r--view-conf.el3
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)