emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/dart-mode 5d0a7cd 139/192: Use dart-sdk-path to find dartf


From: ELPA Syncer
Subject: [nongnu] elpa/dart-mode 5d0a7cd 139/192: Use dart-sdk-path to find dartfmt.
Date: Sun, 29 Aug 2021 11:02:06 -0400 (EDT)

branch: elpa/dart-mode
commit 5d0a7cd09305d2dc4584e72a008db3f099228000
Author: Mostafa Razavi <mostafa@sepent.com>
Commit: Brady Trainor <mail@bradyt.com>

    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

[Prev in Thread] Current Thread [Next in Thread]