(riece-mini-show-backlog): Fix for multibyte
authorbg66 <bg66>
Sun, 12 Oct 2008 16:03:44 +0000 (16:03 +0000)
committerbg66 <bg66>
Sun, 12 Oct 2008 16:03:44 +0000 (16:03 +0000)
characters.

lisp/ChangeLog
lisp/riece-mini.el

index 9799954..9dfc800 100644 (file)
@@ -1,3 +1,8 @@
+2008-10-13  OHASHI Akira  <bg66@koka-in.org>
+
+       * riece-mini.el (riece-mini-show-backlog): Fix for multibyte
+       characters.
+
 2008-09-08  Daiki Ueno  <ueno@unixuser.org>
 
        * riece-notify.el: New add-on.
index f9f7587..da62089 100644 (file)
@@ -123,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))