]> rtime.felk.cvut.cz Git - sojka/company-mode.git/blobdiff - company-css.el
company-css-property-values: delete duplicates
[sojka/company-mode.git] / company-css.el
index 0caf617b9e88e066a50d48fd0661261ce0b69a77..ec48653907d6257e119e0ea71ea62a330f7de1f4 100644 (file)
                 (push child results))
             (push value results)))
         (setq results (sort results 'string<))
-        (puthash attribute results company-css-property-cache)
+        (puthash attribute
+                 (if (fboundp 'delete-consecutive-dups)
+                     (delete-consecutive-dups results)
+                   (delete-dups results))
+                 company-css-property-cache)
         results)))
 
 ;;; bracket detection