* riece-layout.el (riece-set-window-points): Use (recenter -1) to
[riece] / lisp / riece-layout.el
index 523e6f2..5970983 100644 (file)
@@ -87,19 +87,19 @@ happen unconditionally."
   (if (and riece-channel-buffer
           (get-buffer-window riece-channel-buffer))
       (with-current-buffer riece-channel-buffer
-       (unless (riece-frozen riece-channel-buffer)
-         (set-window-point (get-buffer-window riece-channel-buffer)
-                           (point-max)))))
+       (if (riece-frozen riece-channel-buffer)
+           (if riece-channel-buffer-window-point
+               (set-window-point (get-buffer-window riece-channel-buffer)
+                                 riece-channel-buffer-window-point))
+         (recenter -1 (get-buffer-window riece-channel-buffer)))))
   (if (get-buffer-window riece-others-buffer)
       (with-current-buffer riece-others-buffer
        (unless (riece-frozen riece-others-buffer)
-         (set-window-point (get-buffer-window riece-others-buffer)
-                           (point-max)))))
+         (recenter -1 (get-buffer-window riece-others-buffer)))))
   (if (get-buffer-window riece-dialogue-buffer)
       (with-current-buffer riece-dialogue-buffer
        (unless (riece-frozen riece-dialogue-buffer)
-         (set-window-point (get-buffer-window riece-dialogue-buffer)
-                           (point-max))))))
+         (recenter -1 (get-buffer-window riece-dialogue-buffer))))))
 
 (defun riece-reconfigure-windows-predicate ()
   "Return t, if window reconfiguration is needed.