X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=fth%2Fhistory.fth;fp=fth%2Fhistory.fth;h=42c269617c58322d9cc4d06edbc4dbf1df65fccc;hb=db35c5f457c413bd50cd79b0170cb295abb614d2;hp=a61caaa3799c340f018543fd7e5cb67e26c148ba;hpb=d277f40b53e43bc4f40e1cc734bb0ef57a846974;p=debian%2Fpforth diff --git a/fth/history.fth b/fth/history.fth index a61caaa..42c2696 100644 --- a/fth/history.fth +++ b/fth/history.fth @@ -51,7 +51,7 @@ KH-HISTORY kh_history_size erase \ The most recent entry is put at the beginning, \ older entries are shifted up. -4 constant KH_LINE_EXTRA_SIZE ( 2 count bytes plus 2 size bytes ) +4 constant KH_LINE_EXTRA_SIZE ( 2 count bytes plus 2 line_number bytes ) : KH-END ( -- addr , end of history buffer ) kh-history kh_history_size + @@ -345,7 +345,6 @@ variable KH-INSIDE ( true if we are scrolling inside the history buffer ) ENDCASE ; - : KH.SPECIAL.KEY ( char -- true | false , handle fkeys or arrows, true if handled ) true >r CASE