Skip to content

Commit 1f52e81

Browse files
authored
Merge pull request #220 from jcs-PR/fix/compile
2 parents 1e1c94d + ec84418 commit 1f52e81

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

lsp-dart-flutter-fringe-colors.el

+4-4
Original file line numberDiff line numberDiff line change
@@ -75,23 +75,23 @@
7575
(if-let ((color (-> (match-string 1)
7676
(assoc lsp-dart-flutter-colors)
7777
cdr)))
78-
(lsp-dart-flutter-fringe--add-color (concat "#" color) buffer (point-at-bol))))
78+
(lsp-dart-flutter-fringe--add-color (concat "#" color) buffer (line-beginning-position))))
7979
(goto-char (point-min))
8080
(while (re-search-forward lsp-dart-flutter-fringe-color-hex-pattern nil t)
8181
(let ((color (concat "#" (substring (match-string 1) 2))))
82-
(lsp-dart-flutter-fringe--add-color color buffer (point-at-bol))))
82+
(lsp-dart-flutter-fringe--add-color color buffer (line-beginning-position))))
8383
(goto-char (point-min))
8484
(while (re-search-forward lsp-dart-flutter-fringe-color-argb-pattern nil t)
8585
(let ((color (lsp-dart-flutter-fringe--rgb-to-hex (match-string 2)
8686
(match-string 3)
8787
(match-string 4))))
88-
(lsp-dart-flutter-fringe--add-color color buffer (point-at-bol))))
88+
(lsp-dart-flutter-fringe--add-color color buffer (line-beginning-position))))
8989
(goto-char (point-min))
9090
(while (re-search-forward lsp-dart-flutter-fringe-color-rgbo-pattern nil t)
9191
(let ((color (lsp-dart-flutter-fringe--rgb-to-hex (match-string 1)
9292
(match-string 2)
9393
(match-string 3))))
94-
(lsp-dart-flutter-fringe--add-color color buffer (point-at-bol)))))))
94+
(lsp-dart-flutter-fringe--add-color color buffer (line-beginning-position)))))))
9595

9696
(define-minor-mode lsp-dart-flutter-fringe-colors-mode
9797
"Mode for displaying colors in fringe."

lsp-dart-utils.el

+2-2
Original file line numberDiff line numberDiff line change
@@ -206,8 +206,8 @@ FLUTTER_ROOT environment variable."
206206
(-some
207207
(lambda (strategy)
208208
(cl-case strategy
209-
('lsp-root (lsp-workspace-root))
210-
('closest-pubspec (-some-> default-directory
209+
(`lsp-root (lsp-workspace-root))
210+
(`closest-pubspec (-some-> default-directory
211211
(locate-dominating-file "pubspec.yaml")
212212
file-truename))))
213213
lsp-dart-project-root-discovery-strategies))

lsp-dart.el

+2
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@
4444
(require 'lsp-dart-flutter-widget-guide)
4545
(require 'lsp-dart-commands)
4646

47+
(declare-function yas-minor-mode "ext:yasnippet.el")
48+
4749
(defgroup lsp-dart nil
4850
"LSP support for Dart, using dart analysis server."
4951
:prefix "lsp-dart-"

0 commit comments

Comments
 (0)