[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] scratch/add-vdiff f2aaa2e 067/258: Fix goto-corresponding-line
From: |
Justin Burkett |
Subject: |
[elpa] scratch/add-vdiff f2aaa2e 067/258: Fix goto-corresponding-line |
Date: |
Wed, 17 May 2017 08:13:24 -0400 (EDT) |
branch: scratch/add-vdiff
commit f2aaa2eec81c38b256328844f0d446429782fa8a
Author: justbur <address@hidden>
Commit: justbur <address@hidden>
Fix goto-corresponding-line
---
vdiff.el | 9 +++------
1 file changed, 3 insertions(+), 6 deletions(-)
diff --git a/vdiff.el b/vdiff.el
index 562c7b6..0d769a6 100644
--- a/vdiff.el
+++ b/vdiff.el
@@ -675,13 +675,10 @@ changes under point or on the immediately preceding line."
(defun vdiff-goto-corresponding-line (line in-b)
"Jump to the line in the other vdiff buffer that corresponds to
the current one."
- (interactive (list (line-number-at-pos)
- (not (vdiff--buffer-a-p))))
+ (interactive (list (line-number-at-pos) (vdiff--buffer-b-p)))
(vdiff-refresh)
- (let* ((new-line (vdiff--translate-line line in-b))
- (new-pos (vdiff--pos-at-line-beginning new-line)))
- (select-window (vdiff--other-window))
- (goto-char new-pos)))
+ (select-window (vdiff--other-window))
+ (vdiff--move-to-line (vdiff--translate-line line in-b)))
(defun vdiff--sync-line (line in-a)
"Sync point in the other vdiff buffer to the line in this
- [elpa] scratch/add-vdiff dec9dc5 026/258: Small README change, (continued)
- [elpa] scratch/add-vdiff dec9dc5 026/258: Small README change, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff 2c113c4 029/258: Merge pull request #1 from syohex/cl-lib, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff 4312bb1 034/258: Make subtraction overlays zero width, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff 305e723 024/258: Add count to next/prev change and simplify, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff 12f4a21 042/258: Add quit command, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff 72d8dfc 038/258: Avoid making new folds, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff ad37c86 009/258: Factor out subtraction overlay and prefix internal vars, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff 04f5436 001/258: Initial commit, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff f54616f 039/258: Don't close folds if all are open, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff f77f184 062/258: Fix alignment of folds problem caused by recent change, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff f2aaa2e 067/258: Fix goto-corresponding-line,
Justin Burkett <=
- [elpa] scratch/add-vdiff 9a748df 065/258: Update README, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff 9b4e829 069/258: Update requirements for vdiff-hydra, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff d6a399f 076/258: Annouce exit, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff 43b9dc6 097/258: Add missing image, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff 7811f01 095/258: Add two features, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff fa6391e 123/258: Reorg README commands section, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff a2fbb7b 146/258: Rename diff-program-args, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff 3d38f6c 040/258: Fix line endings, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff 5031c90 145/258: Finish new line translation logic, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff 8c78e58 170/258: Fix compiler warning, Justin Burkett, 2017/05/17