vc-region-history: Search just on lines intersecting the region
* 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).
This commit is contained in:
parent
8988327d54
commit
3877c911b7
1 changed files with 1 additions and 1 deletions
|
@ -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*")))
|
||||
|
|
Loading…
Add table
Reference in a new issue