Fix REPOSITION-FILE, HISTORY, locked file handle and other problems.
[debian/pforth] / csrc / pf_inner.c
index 59ddfff69e11568ab4fd6aaebf83a44cf4d0f7b0..0149da038a068e56d5e0abf5ae39e12760eeeb22 100644 (file)
@@ -1289,9 +1289,8 @@ DBUG(("XX ah,m,l = 0x%8x,%8x,%8x - qh,l = 0x%8x,%8x\n", ah,am,al, qh,ql ));
                        if( FileID )\r
                        {\r
                                SAVE_REGISTERS;\r
-                               Scratch = ffIncludeFile( FileID );\r
+                               Scratch = ffIncludeFile( FileID ); /* Also closes the file. */\r
                                LOAD_REGISTERS;\r
-                               sdCloseFile( FileID );\r
                                if( Scratch ) M_THROW(Scratch);\r
                        }\r
                        else\r