summaryrefslogtreecommitdiff
path: root/lisp/vc-annotate-lens-mode.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/vc-annotate-lens-mode.el')
-rw-r--r--lisp/vc-annotate-lens-mode.el13
1 files changed, 5 insertions, 8 deletions
diff --git a/lisp/vc-annotate-lens-mode.el b/lisp/vc-annotate-lens-mode.el
index 8580aef..b615a1b 100644
--- a/lisp/vc-annotate-lens-mode.el
+++ b/lisp/vc-annotate-lens-mode.el
@@ -26,19 +26,16 @@
(let ((git-info (shell-command-to-string (format "git log -u -L%d,%d:%s" vc-annotate-lens-cursor-position vc-annotate-lens-cursor-position buffer-file-name))))
(let (( git-info-split (split-string git-info "\n" )))
- (message "%s" 'git-info-split)
- (let (( author-line (nth 1 git-info-split))
- ( date-line (nth 2 git-info-split)))
- (overlay-put (make-overlay (point-at-eol) (+ 3 (point-at-eol))) 'display
- author-line)
+ (let (
+ ( commit-line (nth 0 git-info-split))
+ ( author-line (nth 1 git-info-split))
+ ( date-line (nth 2 git-info-split)))
+ (overlay-put (make-overlay (point-at-eol) (+ 3 (point-at-eol))) 'display (format " %s\n" author-line))
)
)
)
)
-(do-stuff-if-moved-post-command)
-
-
(define-minor-mode vc-annotate-lens-mode
"Show 'vc-annotate' information when you move to a line."