Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

No modified face for text nodes

  • Loading branch information...
commit c36e3c3b4335e7c0cbe16f4db0eefc5004ba48dc 1 parent 671ac26
Julian Scheid authored September 28, 2012

Showing 1 changed file with 3 additions and 3 deletions. Show diff stats Hide diff stats

  1. 6  kite-dom.el
6  kite-dom.el
@@ -471,8 +471,9 @@ ROOT-PLIST as received in the response to `DOM.getDocument'."
471 471
 widget with `modified-face' to show that its contents have been
472 472
 edited."
473 473
   (let ((modified-face (widget-get widget :modified-value-face)))
474  
-    (unless (eq (widget-get widget :value-face)
475  
-                modified-face)
  474
+    (unless (or (null modified-face)
  475
+                (eq (widget-get widget :value-face)
  476
+                    modified-face))
476 477
       (widget-put widget :value-face modified-face)
477 478
       (overlay-put (widget-get widget :field-overlay)
478 479
                    'face modified-face))))
@@ -792,7 +793,6 @@ newline in editable field."
792 793
                    (move-marker overlay-end
793 794
                                 (1- (marker-position overlay-end)))))
794 795
                :value-face 'kite-text-face
795  
-               :modified-value-face 'kite-modified-text-face
796 796
                :notify (function kite--dom-notify-widget)
797 797
                :validate (function kite--dom-validate-widget)
798 798
                :kite-node-id (kite-dom-node-id dom-node)

0 notes on commit c36e3c3

Please sign in to comment.
Something went wrong with that request. Please try again.