Commit 7d15daf7 authored by Lars Ingebrigtsen's avatar Lars Ingebrigtsen
Browse files

Lists used as plists now have to be an even length

* lisp/net/eww.el (eww-size-text-inputs): `eww-form' isn't a plist.
(eww-process-text-input): Not here, either.
parent 6ad34b3d
......@@ -1135,7 +1135,8 @@ See URL `'.")
(insert (make-string (abs length) ? ))
(set-text-properties start (point) properties))
(goto-char (1- end)))))
(set-text-properties (plist-get form :start) (plist-get form :end)
(set-text-properties (cdr (assq :start form))
(cdr (assq :end form))
(let ((value (buffer-substring-no-properties
......@@ -1348,10 +1349,10 @@ See URL `'.")
(when (or (get-text-property start 'eww-form)
(setq start (next-single-property-change start 'eww-form)))
(let ((props (get-text-property start 'eww-form)))
(plist-put props :start start)
(setq start (next-single-property-change
start 'eww-form nil (point-max)))
(plist-put props :end start))))))
(nconc props (list (cons :start start)))
(setq start (next-single-property-change
start 'eww-form nil (point-max)))
(nconc props (list (cons :end start))))))))
(defun eww-input-value (input)
(let ((type (plist-get input :type))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment