From 3ebb5a97c2c13de870c3b227354132116f659833 Mon Sep 17 00:00:00 2001 From: ram <ram> Date: Sat, 16 Mar 1991 02:18:57 +0000 Subject: [PATCH] Fixed MARK-TO-CURSORPOS to call MAYBE-UPDATE-WINDOW-IMAGE in case the buffer has changed since the last redisplay. Changed CENTER-WINDOW to use MAYBE-UPDATE-WINDOW-IMAGE instead of UPDATE-WINDOW-IMAGE. --- hemlock/cursor.lisp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/hemlock/cursor.lisp b/hemlock/cursor.lisp index 958fe3d54..4b9d6b0ee 100644 --- a/hemlock/cursor.lisp +++ b/hemlock/cursor.lisp @@ -7,7 +7,7 @@ ;;; Scott Fahlman or slisp-group@cs.cmu.edu. ;;; (ext:file-comment - "$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/hemlock/cursor.lisp,v 1.1.1.3 1991/02/08 16:33:41 ram Exp $") + "$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/hemlock/cursor.lisp,v 1.1.1.4 1991/03/16 02:18:57 ram Exp $") ;;; ;;; ********************************************************************** ;;; @@ -195,6 +195,7 @@ ;;; (defun mark-to-cursorpos (mark window) "Return the (x, y) position of mark within window, or NIL if not displayed." + (maybe-update-window-image window) (let* ((line (mark-line mark)) (number (line-number line)) (charpos (mark-charpos mark)) @@ -313,7 +314,7 @@ ;;; (defun displayed-p (mark window) "Return true if Mark is displayed on Window, false otherwise." - (update-window-image window) + (maybe-update-window-image window) (%displayed-p mark window)) -- GitLab