Skip to content

Commit ae19fe2

Browse files
[complete] Prioritize flex style if flex style is requested
1 parent 6646778 commit ae19fe2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cider-completion.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ Only affects the `cider' completion category.`"
297297
(unless found-styles
298298
(setq found-styles '(styles basic)))
299299
(unless (member 'flex found-styles)
300-
(setq found-styles (append found-styles '(flex))))
300+
(setq found-styles (apply #'list 'styles 'flex (cdr found-styles))))
301301
(add-to-list 'completion-category-overrides (apply #'list 'cider found-styles (when found-cycle
302302
(list found-cycle))))))
303303

0 commit comments

Comments
 (0)