(riece-keyword-message-filter): Fix for the infinite
[riece] / lisp / riece-mini.el
index 4a19a72..da62089 100644 (file)
@@ -104,7 +104,8 @@ If twice (C-u C-u), then ask the channel."
             "Channel/User: " riece-current-channels nil t))
           (arg (or riece-mini-last-channel riece-current-channel))
           (t riece-current-channel)))
-        (message (read-string (format "Message to %s: " target))))
+        (message (read-string (format "Message to %s: "
+                                      (riece-format-identity target)))))
     (unless (equal message "")
       (riece-switch-to-channel target)
       (riece-send-string
@@ -122,7 +123,7 @@ If twice (C-u C-u), then ask the channel."
     (let ((height (1+ riece-mini-backlog-size)))
       (mapc #'(lambda (string)
                (setq height (+ height
-                               (/ (length string) (window-width)))))
+                               (/ (string-width string) (window-width)))))
            riece-mini-backlog-history)
       (let ((max-mini-window-height height)
            (resize-mini-windows t))