Sublime Forum

Ensure_newline_at_eof_on_save wrongly moves cursor

#1

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.

0 Likes

#2
0 Likes

#3

Thanks for this. I wouldn’t call this an “enhancement”, but a bug, since the behavior is both inconsistent and unexpected.

It also doesn’t seem to work for me. No sign of that trim file.

0 Likes