Reply To: Open File – use mask from last file

Product Compare Forums Multi-Edit Support Open File – use mask from last file Reply To: Open File – use mask from last file

#6946
DanHughes
Participant

I have fixed this issue differently than what is recorded here in my working copy but it hasn’t been released yet. It should be in the next update which will be when we have enough features/bug fixes to warrant a release.

The files that were changed were FPrompt.s and MeUtil1.s

In MeUtil1.s the following lines around line 226 were deleted.
[code:2dm602t4] if ( TStr == ” ) {
if ( File_Name != "?No-File?" ) {
TStr = Get_Path( File_Name ) + "*." + Get_Extension( File_Name );
// Make_Message( TStr );
}
}

[/code:2dm602t4]

In FPrompt.s around line 40 the following code was changed from:
[code:2dm602t4] if ( ( Fn == "" ) || ( Caps( Fn ) == "?NO-FILE?" ) ) {
No_Spec = 1;
Fn = Truncate_Path( fprompt_Last_Path );
if ( Fn == "" ) {
Fn = "*.*";
}
}
if ( Get_Path( Fn ) == "" ) {
Fn = Get_Path( fprompt_Last_Path ) + Fn;
}
[/code:2dm602t4]
to
[code:2dm602t4] if ( ( Fn == "" ) || ( Caps( Fn ) == "?NO-FILE?" ) ) {
No_Spec = 1;
if ( fprompt_mode & _FPM_LASTMASK ) {
Fn = Truncate_Path( fprompt_Last_Path );
}
if ( Fn == "" ) {
Fn = "*.*";
}
}
if ( Get_Path( Fn ) == "" ) {
if ( fprompt_mode & _FPM_LASTPATH ) {
Fn = Get_Path( fprompt_Last_Path ) + Fn;
}
else {
fn = Get_Path( File_Name ) + fn;
}
}
[/code:2dm602t4]

and around line 386 the following code:
[code:2dm602t4] if ( ( Fn == "" ) || ( Caps( Fn ) == "?NO-FILE?" ) ) {
No_Spec = 1;
Fn = Truncate_Path( fprompt_Last_Path );
if ( Fn == "" ) {
Fn = "*.*";
}
}
if ( Get_Path( Fn ) == "" ) {
Fn = Get_Path( fprompt_Last_Path ) + Fn;
}
[/code:2dm602t4]
was changed to:
[code:2dm602t4] if ( ( Fn == "" ) || ( Caps( Fn ) == "?NO-FILE?" ) ) {
No_Spec = 1;
if ( fprompt_mode & _FPM_LASTMASK ) {
Fn = Truncate_Path( fprompt_Last_Path );
}
if ( Fn == "" ) {
Fn = "*.*";
}
}
if ( Get_Path( Fn ) == "" ) {
if ( fprompt_mode & _FPM_LASTPATH ) {
Fn = Get_Path( fprompt_Last_Path ) + Fn;
}
else {
fn = Get_Path( File_Name ) + fn;
}
}
[/code:2dm602t4]

You will need to recompile these files and rebuild the macro library to have the changed take effect.