We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7003c88 commit c7cb315Copy full SHA for c7cb315
ace-window.el
@@ -816,10 +816,14 @@ Switch the current window to the previous buffer."
816
(switch-to-buffer buffer)))
817
818
(defun aw-copy-window (window)
819
- "Copy the current buffer to WINDOW."
820
- (let ((buffer (current-buffer)))
+ "Copy the current buffer to WINDOW - including window-start and point."
+ (let ((buffer (current-buffer))
821
+ (window-start (window-start))
822
+ (point (point)))
823
(aw-switch-to-window window)
- (switch-to-buffer buffer)))
824
+ (switch-to-buffer buffer)
825
+ (set-window-start (frame-selected-window) window-start)
826
+ (goto-char point)))
827
828
(defun aw-split-window-vert (window)
829
"Split WINDOW vertically."
0 commit comments