MMedit, SELECT CASE bug


Author Message
ville56
Guru

Joined: 08/06/2022
Location: Austria
Posts: 395
Posted: 10:18am 12 Mar 2025      

@Jim,

please have a look at the following:

an empty CASE in a SELECT statement causes the "format indentation" to get nuts.


 
 '+++++++++++++ Main loop ++++++++++++++++
 do
   if rot_ef = 1 then
     rot_ef = 0
     select case rot_state
       CASE 1
     end select
     end if
     loop

if a line, even blank, is inserted, all is ok


 '+++++++++++++ Main loop ++++++++++++++++
 do
   if rot_ef = 1 then
     rot_ef = 0
     select case rot_state
       CASE 1
         'blank line

     end select
   end if
 loop


Regards,
Gerald