diff --git a/exec/fseditor.js b/exec/fseditor.js index c6b192154b26bdccecf298d0daf253560cdfb7cb..b98eae79cd5315c2be202e6e9e46c723ed8b701e 100644 --- a/exec/fseditor.js +++ b/exec/fseditor.js @@ -694,12 +694,18 @@ function redraw_screen() { var last_tab='|'; status_line(); - console.gotoxy(1,1); - printf(hdr_fmt, "Subj", subj); - console.gotoxy(1,2); - printf(hdr_fmt, "To", to); - console.gotoxy(1,3); - printf(hdr_fmt, "From", from); + if(edit_top == 5) { + console.gotoxy(1,1); + printf(hdr_fmt, "Subj", subj); + console.gotoxy(1,2); + printf(hdr_fmt, "To", to); + console.gotoxy(1,3); + printf(hdr_fmt, "From", from); + } + else { + console.gotoxy(1,1); + printf(hdr_fmt, "File", subj); + } /* Display tab line */ for(i=0;i<(console.screen_columns-1);i++) { if(i && (i%8)==0) { @@ -1806,6 +1812,15 @@ if(drop_file.exists && drop_file.open("r")) { to=info[1]; from=info[3]; } +else { + subj=''; +} +if(subj=='') { + edit_top=3; + lines_on_screen=edit_bottom-edit_top+1; + subj=input_filename; + subj=subj.replace(/^.*[\\\/]/,''); +} edit(use_quotes); console.ctrlkey_passthru=oldpass; bbs.sys_status=old_status;