When using #ifdef..#endif the #endif is written at the exact end of the selection. It would be more useful if a newline was inserted for the #endif so # is at start of line.
Yeah, I think it's a bug too... VAX should check to see that the last char... uh, well, you'd have to iterate from the end of the selected text, and if you came to a non-whitespace character that was not a CR, then you'd insert a CR before the #endif.