]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix completion of colon after CSS property (Bug#29056)
authorSimen Heggestøyl <simenheg@gmail.com>
Thu, 2 Nov 2017 19:29:06 +0000 (20:29 +0100)
committerSimen Heggestøyl <simenheg@gmail.com>
Thu, 2 Nov 2017 19:39:39 +0000 (20:39 +0100)
* lisp/textmodes/css-mode.el (css-completion-at-point): Don't insert
": ;" after completing a CSS property unless the rest of the line is
empty.

lisp/textmodes/css-mode.el

index 39885c10860222434bc783f31d27a9b7eacbd632..1de4ff0fca91cad2257a63c1a9f6ca20c59dd75e 100644 (file)
@@ -1375,6 +1375,7 @@ tags, classes and IDs."
               :exit-function
               ,(lambda (string status)
                  (and (eq status 'finished)
+                      (eolp)
                       prop-table
                       (test-completion string prop-table)
                       (not (and sel-table