Skip to content

Commit

Permalink
fix(binary): don't objdump remote files
Browse files Browse the repository at this point in the history
  • Loading branch information
abougouffa committed Nov 16, 2023
1 parent 2885f64 commit 0fb752f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion elisp/+binary.el
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@
;;;###autoload
(defun +binary-objdump-buffer-p (&optional buffer)
"Can the BUFFER be viewed as a disassembled code with objdump."
(and +binary-objdump-enable (+binary-objdump-p (buffer-file-name buffer))))
(when-let ((file (buffer-file-name buffer)))
(and (not (file-remote-p file)) +binary-objdump-enable (+binary-objdump-p file))))

;; A predicate for detecting binary files. Inspired by:
;; emacs.stackexchange.com/q/10277/37002)
Expand Down

0 comments on commit 0fb752f

Please sign in to comment.