reformatted g_editor.c to be legible