I have ensure_newline_at_eof_on_save set to true. If the cursor is at the end of the file and there is no newline, upon doing a save, the new line will be created (correctly) and the cursor will be advanced to it (incorrectly). If the cursor is anywhere else in the file, the new line will be created (correctly) and the cursor will be left where it is (correctly).
The desired behavior is for the cursor never to be moved.