From ec467c6ef2923f17489187a17ceb615da952a5ee Mon Sep 17 00:00:00 2001 From: deuce <> Date: Wed, 23 Aug 2006 23:09:49 +0000 Subject: [PATCH] Various fixes... fix 'CTRK-K' typo, redraw status line after a CTRL-Y, use dest file as filename from editor.inf if subject is blank. --- exec/fseditor.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/exec/fseditor.js b/exec/fseditor.js index fddb055de4..fec4e531f1 100644 --- a/exec/fseditor.js +++ b/exec/fseditor.js @@ -32,7 +32,7 @@ var info; // Message header display format var hdr_fmt = "\1b\1h%-4s\1n\1b: \1h\1c%.60s\1>\r\n"; -var stat_fmt = "\1h\1w\0014 FSEditor v" + REVISION + " - Type \1yCTRK-K\1w for help %s\1>\1n"; +var stat_fmt = "\1h\1w\0014 FSEditor v" + REVISION + " - Type \1yCTRL-K\1w for help %s\1>\1n"; var subj,to,from; function Line() @@ -1739,7 +1739,7 @@ function edit(quote_first) for(i=ypos; i<topline+lines_on_screen; i++) draw_line(i); */ - break; + status_line(); break; case '\x1a': /* CTRL-Z (EOF) (PgUp in SyncEdit) */ var f=new File((argc==0?system.temp_dir+"INPUT.MSG":argv[0])); @@ -1823,11 +1823,12 @@ if(drop_file.exists && drop_file.open("r")) { } else { subj=''; + to=input_filename; } if(subj=='') { edit_top=3; lines_on_screen=edit_bottom-edit_top+1; - subj=input_filename; + subj=to; subj=subj.replace(/^.*[\\\/]/,''); } edit(use_quotes); -- GitLab