From 2efff5e61caae07b827840dd80eef61ed5ef40f9 Mon Sep 17 00:00:00 2001 From: Dmitry Gutov Date: Wed, 28 Oct 2020 03:43:47 +0200 Subject: [PATCH] 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). --- lisp/textmodes/css-mode.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/textmodes/css-mode.el b/lisp/textmodes/css-mode.el index 748a561bab5..747657b1ed5 100644 --- a/lisp/textmodes/css-mode.el +++ b/lisp/textmodes/css-mode.el @@ -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)))) -- 2.39.2