Commits

Frank Fischer committed 278716a

fix (vim-motions.el): infinite loop in vim:add-jump

  • Participants
  • Parent commits e7c03bc

Comments (0)

Files changed (1)

File vim-motions.el

     
     ;; remove markers above maximum
     (while (> size vim:max-jumplist)
-      (push (pop new-jumps) old-jumps))
+      (push (pop new-jumps) old-jumps)
+      (decf size))
     ;; create new marker or reuse old one
     (let ((m (or (pop old-jumps) (make-marker))))
       (set-marker m pos)