Skip to content
Snippets Groups Projects
Commit c71788a4 authored by deuce's avatar deuce
Browse files

If not creating a message (ie: subject is blank), assume a file is being

edited and just show the filename as the header.
parent 463e62a3
No related branches found
No related tags found
No related merge requests found
......@@ -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;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment