[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master 9f1c613 2/2: Fix vc-region-history when narrowed
From: |
Charles A. Roelli |
Subject: |
[Emacs-diffs] master 9f1c613 2/2: Fix vc-region-history when narrowed |
Date: |
Wed, 20 Dec 2017 15:06:40 -0500 (EST) |
branch: master
commit 9f1c613b07e4a745671af5818366660e3765984d
Author: Charles A. Roelli <address@hidden>
Commit: Charles A. Roelli <address@hidden>
Fix vc-region-history when narrowed
* lisp/vc/vc.el (vc-region-history): Fix behavior when narrowed, by using
line numbers starting from (point-min).
---
lisp/vc/vc.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lisp/vc/vc.el b/lisp/vc/vc.el
index b159991..f48f682 100644
--- a/lisp/vc/vc.el
+++ b/lisp/vc/vc.el
@@ -2417,8 +2417,8 @@ When called interactively with a prefix argument, prompt
for REMOTE-LOCATION."
(defun vc-region-history (from to)
"Show the history of the region FROM..TO."
(interactive "r")
- (let* ((lfrom (line-number-at-pos from))
- (lto (line-number-at-pos (1- to)))
+ (let* ((lfrom (line-number-at-pos from t))
+ (lto (line-number-at-pos (1- to) t))
(file buffer-file-name)
(backend (vc-backend file))
(buf (get-buffer-create "*VC-history*")))