Artawower / blamer.el

A git blame plugin for emacs inspired by VS Code's GitLens plugin
GNU General Public License v3.0
431 stars 15 forks source link

blamer--git-exist-p raises error when editting using Tramp's /sudo::/ #30

Closed daanturo closed 2 years ago

daanturo commented 2 years ago

Steps:

  1. find-file /sudo::/etc/fstab
  2. The file may not be opened, try again
  3. M-x

After step 1 and 3, an error is logged: Not a Tramp file name: "nil" After step 3, Emacs is unable to execute anything because the above error always stands in the way.

blamer--git-exist-p uses blamer--get-local-name/tramp-dissect-file-name on nil (a non-file mini buffer in step 3).

Artawower commented 2 years ago

Thanks for the good explanation. Should be fixed in the last commit

daanturo commented 2 years ago

Thank you, it's solved.