Don't ruin my window layout please

This commit is contained in:
Benson Chu 2024-08-27 15:54:27 -05:00
parent b429d8a12e
commit 8a766c3c86

View file

@ -116,9 +116,10 @@
(second-command (ll/build-clang-command (lls/un-trampify file) action))
(pipe (if (y-or-n-p "Diff assembly (y) or debug (n)? ")
">" "2>")))
(when (not
(and (zerop (shell-command (format "%s %s /tmp/old.asm" comm pipe)))
(zerop (shell-command (format "%s %s /tmp/new.asm" second-command pipe)))))
(when (save-window-excursion
(not
(and (zerop (shell-command (format "%s %s /tmp/old.asm" comm pipe)))
(zerop (shell-command (format "%s %s /tmp/new.asm" second-command pipe))))))
(error "One of the commands failed"))
(ediff-files "/tmp/old.asm" "/tmp/new.asm")))