Skip to content

Commit

Permalink
feat: Ignore cogru sync
Browse files Browse the repository at this point in the history
  • Loading branch information
jcs090218 committed Jun 22, 2024
1 parent 0afac7a commit d7305ad
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions undo-tree-vf.el
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,12 @@
(when (undo-tree-vs--enabled-p)
(undo-tree-kill-visualizer)))

;;
;; (@* "Externals" )
;;

(defvar cogru-inhibit-sync-hooks)

;;
;; (@* "Util" )
;;
Expand Down Expand Up @@ -115,10 +121,11 @@
If `undo-tree-mode' is not valid, we call undo/redo function according to ARG"
(declare (indent 1))
`(if (or (not undo-tree-mode) (not undo-tree-vf-mode))
(call-interactively (if ,arg undo-tree-vf-fallback-undo
undo-tree-vf-fallback-redo))
,@body))
`(let ((cogru-inhibit-sync-hooks t))
(if (or (not undo-tree-mode) (not undo-tree-vf-mode))
(call-interactively (if ,arg undo-tree-vf-fallback-undo
undo-tree-vf-fallback-redo))
,@body)))

(defun undo-tree-vf--visualize ()
"Call `undo-tree-visualize' only in window that has higher height."
Expand Down

0 comments on commit d7305ad

Please sign in to comment.