projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8988327
)
vc-region-history: Search just on lines intersecting the region
author
Tino Calancha
<tino.calancha@gmail.com>
Thu, 20 Oct 2016 10:39:59 +0000
(19:39 +0900)
committer
Tino Calancha
<tino.calancha@gmail.com>
Thu, 20 Oct 2016 10:39:59 +0000
(19:39 +0900)
* lisp/vc/vc.el (vc-region-history): If region ends in the beginning
of a line, then exclude that line from the search (Bug#24725).
lisp/vc/vc.el
patch
|
blob
|
history
diff --git
a/lisp/vc/vc.el
b/lisp/vc/vc.el
index af875e89907fa91674ccbae095f9ecb24b193db6..ac020d0953975eb431478146f8c72b772364c0af 100644
(file)
--- a/
lisp/vc/vc.el
+++ b/
lisp/vc/vc.el
@@
-2393,7
+2393,7
@@
When called interactively with a prefix argument, prompt for REMOTE-LOCATION."
"Show the history of the region FROM..TO."
(interactive "r")
(let* ((lfrom (line-number-at-pos from))
- (lto (line-number-at-pos
to
))
+ (lto (line-number-at-pos
(1- to)
))
(file buffer-file-name)
(backend (vc-backend file))
(buf (get-buffer-create "*VC-history*")))