gabesoft / evil-mc

Multiple cursors implementation for evil-mode
MIT License
383 stars 35 forks source link

Fix an error on before-cursors-setup hook #104

Closed sei40kr closed 4 years ago

sei40kr commented 4 years ago

Description

Fix an error on before-cursors-setup hook, which occurs when whitespace-cleanup-disabled is not defined.

Debugger entered--Lisp error: (void-variable whitespace-cleanup-disabled)
  (boundp whitespace-cleanup-disabled)
  (if (boundp whitespace-cleanup-disabled) (progn (setq whitespace-cleanup-disabled t) (setq evil-mc-custom-paused (cons (function (lambda nil (setq whitespace-cleanup-disabled nil))) evil-mc-custom-paused))))
  evil-mc-before-cursors-setup-hook()
  run-hooks(evil-mc-before-cursors-created)
  evil-mc-cursors-before()
  evil-mc-run-cursors-before()
  evil-mc-make-cursor-move-by-line(1 nil)
  evil-mc-make-cursor-move-next-line(nil)
  funcall-interactively(evil-mc-make-cursor-move-next-line nil)
  call-interactively(evil-mc-make-cursor-move-next-line nil nil)
  command-execute(evil-mc-make-cursor-move-next-line)