--- gforth/history.fs 2011/01/01 14:33:03 1.75 +++ gforth/history.fs 2011/01/29 21:56:47 1.76 @@ -232,6 +232,8 @@ require utf-8.fs ' xcur-correct IS cur-correct : xback-restore ( u -- ) + dup screenw @ mod 0= IF 1- 0 max THEN + \ correction for line=screenw, no wraparound then! screenw @ /mod negate swap negate swap at-deltaxy ; : .rest ( addr pos1 -- addr pos1 ) linew @ xback-restore 2dup type 2dup cur-correct ;