X-Git-Url: https://cgit.sxemacs.org/?p=riece;a=blobdiff_plain;f=lisp%2Friece-mode.el;h=81762f33ad41af6554adfaae43b648e88a9850ec;hp=4a779401facf5348d02a51d26569485a58bc4406;hb=5939610d8a1614e4a4c356777ae7f7436a78a3d6;hpb=ce31ecd481aadab99d158271dc360dc4d33d8af8 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