emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 2efff5e: css--complete-property-value: Limit the backward search


From: Dmitry Gutov
Subject: master 2efff5e: css--complete-property-value: Limit the backward search
Date: Tue, 27 Oct 2020 21:43:53 -0400 (EDT)

branch: master
commit 2efff5e61caae07b827840dd80eef61ed5ef40f9
Author: Dmitry Gutov <dgutov@yandex.ru>
Commit: Dmitry Gutov <dgutov@yandex.ru>

    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 748a561..747657b 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))))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]