--- gforth/history.fs 2010/01/23 22:19:50 1.73 +++ gforth/history.fs 2011/01/01 14:33:03 1.75 @@ -1,6 +1,6 @@ \ command line edit and history support 16oct94py -\ Copyright (C) 1995,2000,2003,2004,2005,2006,2007,2008 Free Software Foundation, Inc. +\ Copyright (C) 1995,2000,2003,2004,2005,2006,2007,2008,2010 Free Software Foundation, Inc. \ This file is part of Gforth. @@ -292,9 +292,11 @@ require utf-8.fs r@ - >string over r@ + -rot move rot r@ - -rot .all r@ spaces r> back-restore .rest THEN ; +[IFUNDEF] insert : insert ( string length buffer size -- ) rot over min >r r@ - ( left over ) over dup r@ + rot move r> move ; +[THEN] : xtab-expand ( max span addr pos1 -- max span addr pos2 0 ) key? IF #tab (xins) 0 EXIT THEN