Changeset 629


Ignore:
Timestamp:
Mar 6, 2004, 11:53:25 PM (21 years ago)
Author:
Gary Byers
Message:

Window-scrolling changes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ccl/hemlock/src/command.lisp

    r566 r629  
    301301  window, down one screenfull.  If P is supplied then scroll that
    302302  many lines."
    303   (if p
    304       (scroll-window window p)     
    305       (let ((height (window-height window))
    306             (overlap (value scroll-overlap)))
    307         (scroll-window window (if (<= height overlap)
    308                                   height (- height overlap))))))
     303  (scroll-window window (or p 1)))
    309304
    310305(defcommand "Scroll Window Up" (p &optional (window (current-window)))
     
    314309  window, up one screenfull.  If P is supplied then scroll that
    315310  many lines."
    316   (if p
    317       (scroll-window window (- p))
    318       (let ((height (- (window-height window)))
    319             (overlap (- (value scroll-overlap))))
    320         (scroll-window window (if (>= height overlap)
    321                                   height (- height overlap))))))
     311  (scroll-window window (or p -1)))
    322312
    323313(defcommand "Scroll Next Window Down" (p)
Note: See TracChangeset for help on using the changeset viewer.