casouri / vundo

Visualize the undo tree.
413 stars 20 forks source link

Error calling vundo-stem-root at the beginning of the undo history #18

Closed ideasman42 closed 2 years ago

ideasman42 commented 2 years ago

When at the beginning of the undo history run vundo-stem-root, this results in an error.

Debugger entered--Lisp error: (wrong-type-argument vundo-m nil)
  vundo--eqv-list-of(nil)
  vundo--calculate-shortest-route(#s(vundo-m :idx 0 :children ... <SNIP>
  vundo--move-to-node(#s(vundo-m :idx 0 :children ... :parent nil :prev-eqv nil :next-eqv ... :undo-list nil :point 2) nil #<buffer creator.c> (... ... ... ... ... ... ... ... ... ... ... ... ... ... ...))
  vundo-stem-root()
  funcall-interactively(vundo-stem-root)
  command-execute(vundo-stem-root)

Edit, this also happens running vundo-stem-root when at the stem end too.

casouri commented 2 years ago

Thanks! I've fixed them.