diff options
Diffstat (limited to 'edit.c')
| -rw-r--r-- | edit.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -1,5 +1,5 @@ /* - * Copyright (C) 1984-2024 Mark Nudelman + * Copyright (C) 1984-2025 Mark Nudelman * * You may distribute under the terms of either the GNU General Public * License or the Less License, as specified in the README file. @@ -36,6 +36,7 @@ extern IFILE curr_ifile; extern IFILE old_ifile; extern struct scrpos initial_scrpos; extern void *ml_examine; +extern POSITION soft_eof; #if SPACES_IN_FILENAMES extern char openquote; extern char closequote; @@ -531,7 +532,7 @@ public int edit_ifile(IFILE ifile) error("%s", &parg); free(p); return edit_error(filename, alt_filename, altpipe, ifile); - } else if ((f = open(open_filename, OPEN_READ)) < 0) + } else if ((f = iopen(open_filename, OPEN_READ)) < 0) { /* * Got an error trying to open it. @@ -604,6 +605,7 @@ public int edit_ifile(IFILE ifile) * Get the saved position for the file. */ curr_ifile = ifile; + soft_eof = NULL_POSITION; set_altfilename(curr_ifile, alt_filename); set_altpipe(curr_ifile, altpipe); set_open(curr_ifile); /* File has been opened */ @@ -656,6 +658,7 @@ public int edit_ifile(IFILE ifile) #if HILITE_SEARCH clr_hilite(); #endif + undo_osc8(); hshift = 0; if (strcmp(filename, FAKE_HELPFILE) && strcmp(filename, FAKE_EMPTYFILE)) { |
