#include "error.h"
#include "file-handle.h"
#include "filename.h"
-#include "getline.h"
+#include "getl.h"
#include "lexer.h"
#include "str.h"
#include "vfm.h"
+#include "gettext.h"
+#define _(msgid) gettext (msgid)
+
#include "debug-print.h"
/* Flags for DFM readers. */
assert (inline_open_cnt > 0);
still_open = --inline_open_cnt;
- if (still_open)
+ if (!still_open)
{
/* Skip any remaining data on the inline file. */
- while ((r->flags & DFM_EOF) == 0)
- read_record (r);
+ if (r->flags & DFM_SAW_BEGIN_DATA)
+ while ((r->flags & DFM_EOF) == 0)
+ read_record (r);
inline_file = NULL;
}
}