|
|
@ -154,17 +154,21 @@
|
|
|
|
(cond
|
|
|
|
(cond
|
|
|
|
((= 0 num-to-add) (values from to))
|
|
|
|
((= 0 num-to-add) (values from to))
|
|
|
|
(else
|
|
|
|
(else
|
|
|
|
(if (eq? #\newline (car from))
|
|
|
|
(cond
|
|
|
|
(begin
|
|
|
|
((eq? #\newline (car from))
|
|
|
|
(set-lex-buffer-line!
|
|
|
|
(set-lex-buffer-line!
|
|
|
|
lb
|
|
|
|
lb
|
|
|
|
(sub1 (lex-buffer-line lb)))
|
|
|
|
(sub1 (lex-buffer-line lb)))
|
|
|
|
(set-lex-buffer-offset!
|
|
|
|
(set-lex-buffer-offset!
|
|
|
|
lb
|
|
|
|
lb
|
|
|
|
(car (lex-buffer-line-lengths lb)))
|
|
|
|
(car (lex-buffer-line-lengths lb)))
|
|
|
|
(set-lex-buffer-line-lengths!
|
|
|
|
(set-lex-buffer-line-lengths!
|
|
|
|
lb
|
|
|
|
lb
|
|
|
|
(cdr (lex-buffer-line-lengths lb)))))
|
|
|
|
(cdr (lex-buffer-line-lengths lb))))
|
|
|
|
|
|
|
|
(else
|
|
|
|
|
|
|
|
(set-lex-buffer-col!
|
|
|
|
|
|
|
|
lb
|
|
|
|
|
|
|
|
(sub1 (lex-buffer-col lb)))))
|
|
|
|
(switch-buffers (cdr from)
|
|
|
|
(switch-buffers (cdr from)
|
|
|
|
(cons (car from) to)
|
|
|
|
(cons (car from) to)
|
|
|
|
(sub1 num-to-add)))))))
|
|
|
|
(sub1 num-to-add)))))))
|
|
|
|