diff --git a/src/sbbs3/writemsg.cpp b/src/sbbs3/writemsg.cpp
index 26975e31e7aa2981cff42940671db61e64529471..18fcb9e20ff0c254d73447e919b0cd12ff79d0ff 100644
--- a/src/sbbs3/writemsg.cpp
+++ b/src/sbbs3/writemsg.cpp
@@ -916,7 +916,7 @@ void sbbs_t::editfile(char *fname)
 		if(fexistcase(path))
 			fcopy(path, msgtmp);
 
-		editor_inf(useron.xedit,nulstr,nulstr,0,INVALID_SUB);
+		editor_inf(useron.xedit,fname,nulstr,0,INVALID_SUB);
 		if(cfg.xedit[useron.xedit-1]->misc&XTRN_NATIVE)
 			mode|=EX_NATIVE;
 		if(cfg.xedit[useron.xedit-1]->misc&XTRN_SH)