1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-30 04:10:54 -08:00

css--complete-property-value: Limit the backward search

* lisp/textmodes/css-mode.el (css--complete-property-value):
Don't search back when ppss-innermost-start is nil (bug#44214).
This commit is contained in:
Dmitry Gutov 2020-10-28 03:43:47 +02:00
parent 9944385cfb
commit 2efff5e61c

View 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))))