branch: elpa/goto-chg
commit ea9adb4b72d48f87aec80a72d6fbf45e4ad1d66a
Author: Vasilij Schneidermann <[email protected]>
Commit: Vasilij Schneidermann <[email protected]>
Check correctly for no changes
---
goto-chg.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/goto-chg.el b/goto-chg.el
index 696bc82..af726e7 100644
--- a/goto-chg.el
+++ b/goto-chg.el
@@ -248,7 +248,7 @@ discarded. See variable `undo-limit'."
glc-current-span glc-default-span)
(if (< (prefix-numeric-value arg) 0)
(error "Negative arg: Cannot reverse as the first operation"))))
- (cond ((null buffer-undo-list)
+ (cond ((and (null buffer-undo-list) (null buffer-undo-tree))
(error "Buffer has not been changed"))
((eq buffer-undo-list t)
(error "No change info (undo is disabled)")))