Using the beautifier on C++ I always get the last empty line clipped resulting on compiler warnings. Hoe can I change this behavior? The beautifier options don't seem to include something relevant.
_command beautify_2() name_info(','VSARG2_MACRO|VSARG2_MARK|VSARG2_REQUIRES_MDI_EDITORCTL){ _macro('R',1); bottom_of_buffer(); end_line(); c_enter(); execute('gui_beautify');}
After trying it, it has a couple of problems:* It leaves the caret in the last line of the file.* The beautifier does not delete the last empty line (probably because the caret is there), so lines just keep getting appended
_command void beautify_2() name_info(','VSARG2_MACRO|VSARG2_MARK|VSARG2_REQUIRES_MDI_EDITORCTL){ _macro('R',1); typeless p; _str line; execute('gui_beautify'); _save_pos2(p); bottom_of_buffer(); get_line(line); if (line != '') { end_line(); c_enter(); } _restore_pos2(p);}