branch: elpa/dart-mode
commit 5d0a7cd09305d2dc4584e72a008db3f099228000
Author: Mostafa Razavi <[email protected]>
Commit: Brady Trainor <[email protected]>

    Use dart-sdk-path to find dartfmt.
---
 dart-mode.el | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/dart-mode.el b/dart-mode.el
index 8e26f8f..d47adfe 100644
--- a/dart-mode.el
+++ b/dart-mode.el
@@ -1725,10 +1725,11 @@ inside a `before-save-hook'."
 This can be customized by setting `dart-formatter-command-override'."
   (or dart-formatter-command-override
       (when dart-sdk-path
-        (file-name-as-directory "bin")
-            (if (memq system-type '(ms-dos windows-nt))
-                "dartfmt.exe"
-              "dartfmt"))))
+        (concat dart-sdk-path
+                (file-name-as-directory "bin")
+                (if (memq system-type '(ms-dos windows-nt))
+                    "dartfmt.exe"
+                  "dartfmt")))))
 
 (defvar dart--formatter-compilation-regexp
   '("^line \\([0-9]+\\), column \\([0-9]+\\) of \\([^ \n]+\\):" 3 1 2)

Reply via email to