X-Git-Url: https://cgit.sxemacs.org/?a=blobdiff_plain;f=lisp%2Friece-mode.el;h=81762f33ad41af6554adfaae43b648e88a9850ec;hb=31af90ee9dadd320e1820f0524de9dc3460f4ea4;hp=4a779401facf5348d02a51d26569485a58bc4406;hpb=ce31ecd481aadab99d158271dc360dc4d33d8af8;p=riece diff --git a/lisp/riece-mode.el b/lisp/riece-mode.el index 4a77940..81762f3 100644 --- a/lisp/riece-mode.el +++ b/lisp/riece-mode.el @@ -27,9 +27,9 @@ (defun riece-parse-modes (string) (let ((start 0) result) - (while (and (string-match "[-+]\\([^ ]*\\) *" string start) + (while (and (string-match "[-+]\\([^-+ ]*\\) *" string start) (= (match-beginning 0) start)) - (let ((toggle (eq (aref string 0) ?+)) + (let ((toggle (eq (aref string start) ?+)) (modes (string-to-list (match-string 1 string)))) (setq start (match-end 0)) (while modes