branch: scratch/editorconfig-cc
commit 14ba6ed35b874279787907a2bba30f202d6214d7
Author: 10sr <8.slas...@gmail.com>
Commit: Stefan Monnier <monn...@iro.umontreal.ca>

    Check `filename` rather than `buffer-file-name` for consistency (#280)
    
    Co-authored-by: Wade Zhang <doch...@gmail.com>
---
 editorconfig.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/editorconfig.el b/editorconfig.el
index 9a51a3fbab..74a32e9e01 100644
--- a/editorconfig.el
+++ b/editorconfig.el
@@ -507,7 +507,7 @@ It calls `editorconfig-get-properties-from-exec' if
 `editorconfig-exec-path' is found, otherwise
 `editorconfig-core-get-properties-hash'."
   (if (and (executable-find editorconfig-exec-path)
-           (not (file-remote-p buffer-file-name)))
+           (not (file-remote-p filename)))
       (editorconfig-get-properties-from-exec filename)
     (require 'editorconfig-core)
     (editorconfig-core-get-properties-hash filename)))

Reply via email to