Fix -- user list buffer not updating when parts are hidden.
[riece] / lisp / riece-mini.el
index f9f7587..e332b29 100644 (file)
@@ -1,4 +1,4 @@
-;;; riece-mini.el --- use Riece only on the minibuffer
+;;; riece-mini.el --- use Riece only on the minibuffer -*- lexical-binding: t -*-
 ;; Copyright (C) 2003 OHASHI Akira
 
 ;; Author: OHASHI Akira <bg66@koka-in.org>
@@ -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))