branch: scratch/add-vdiff
commit 23b3360a4120cc667491b070ca03f3bf4ee92ec3
Author: justbur <[email protected]>
Commit: justbur <[email protected]>

    Fix compiler warnings
---
 vdiff.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/vdiff.el b/vdiff.el
index 857348b..2f55b2a 100644
--- a/vdiff.el
+++ b/vdiff.el
@@ -748,7 +748,7 @@ folds in the region."
          (reverse (< n 0))
          pnt)
     (save-excursion
-      (dotimes (i (abs n))
+      (dotimes (_i (abs n))
         ;; Escape current overlay
         (vdiff--maybe-exit-overlay reverse)
         (setq pnt (point))
@@ -852,6 +852,8 @@ asked to select two buffers."
     (define-key map "C" 'vdiff-close-all-folds)
     map))
 
+(defvar vdiff-scroll-lock-mode)
+
 (define-minor-mode vdiff-mode
   "Minor mode active in a vdiff session. This sets up key
 bindings in `vdiff-mode-map' and adds hooks to refresh diff on

Reply via email to