Use `(values)' to return no return values instead of `values'...

This commit is contained in:
eknauel 2005-05-17 15:29:33 +00:00
parent 0cda756391
commit d76ca37524
2 changed files with 10 additions and 10 deletions

View File

@ -85,16 +85,16 @@
((= ch key-backspace)
(if can-write
(if (< pos-col 3)
values
(values)
(begin
(set! text (remove-from-command-buffer text pos-col))
(set! pos-col (- pos-col 1))))
values))
(values)))
;; move cursor to previous line Ctrl-p, keycode 16
((= ch 16)
(if (< pos-fin-ln 2)
values
(values)
(let ((length-prev-line
(string-length
(list-ref text (- pos-line 2)))))
@ -106,7 +106,7 @@
((= ch 141)
(let ((last-pos (length text)))
(if (>= pos-line last-pos)
values
(values)
(let ((length-next-line
(string-length
(list-ref text pos-line))))
@ -118,7 +118,7 @@
((= ch key-left)
(if (<= pos-col 2)
values
(values)
(begin
(set! pos-col (- pos-col 1)))))
@ -127,7 +127,7 @@
(list-ref text
(- pos-line 1)))))
(if (>= pos-col (+ line-length 2))
values
(values)
(begin
(set! pos-col (+ pos-col 1))))))
@ -189,8 +189,8 @@
(begin
(set! text (add-to-command-buffer ch text pos-col))
(set! pos-col (+ pos-col 1)))
values))
values)))
(values)))
(values))))
(make-buffer text pos-line pos-col pos-fin-ln pos-y pos-x
num-lines num-cols can-write history-pos)))))

View File

@ -1560,7 +1560,7 @@
(cols (getmaxx win)))
(if (and (= 0 y) (= 0 x))
(if (equal? #\space (winch win))
values
(values)
(begin
(wdelch win)
(wrefresh win)))
@ -1586,7 +1586,7 @@
(x (getx win))
(cols (getmaxx win)))
(if (and (= 0 y) (= 0 x))
values
(values)
(if (= 0 x)
(begin
(wmove win (- y 1) (- cols 1))