]> git.eshelyaron.com Git - emacs.git/commitdiff
css--complete-property-value: Limit the backward search
authorDmitry Gutov <dgutov@yandex.ru>
Wed, 28 Oct 2020 01:43:47 +0000 (03:43 +0200)
committerDmitry Gutov <dgutov@yandex.ru>
Wed, 28 Oct 2020 01:43:47 +0000 (03:43 +0200)
* lisp/textmodes/css-mode.el (css--complete-property-value):
Don't search back when ppss-innermost-start is nil (bug#44214).

lisp/textmodes/css-mode.el

index 748a561bab5ec9c6ede1a28369ad732d7711bc38..747657b1ed595f82c560c268da4dd51f1d8f92e3 100644 (file)
@@ -1358,7 +1358,7 @@ the string PROPERTY."
   "Complete property value at point."
   (let ((property (and (looking-back "\\([[:alnum:]-]+\\):[^/][^;]*"
                                      (or (ppss-innermost-start (syntax-ppss))
-                                         (point-min))
+                                         (point))
                                      t)
                        (member (match-string-no-properties 1)
                                css-property-ids))))