coteditor / cot

Command-line helper tool for CotEditor
https://coteditor.com/cot
Apache License 2.0
55 stars 11 forks source link

-column -1 behavior #10

Closed drq883 closed 4 years ago

drq883 commented 5 years ago

I use coteditor as an editor for a work journal script I wrote. When I start my script, I want the cursor be at the very end of the document. It is, but the cursor is in front of the last character.

Is there any way (or other value) you -column could support positioning the cursor after the last character?

1024jp commented 5 years ago

Humm, that's strange. Please tell me the versions of your:

FYI, the latest versions are 3.6.11 for CotEditor and 2.7.3 for cot command.

drq883 commented 5 years ago

I tested this on my MacBook and it behaves as normal. This was on my MacPro yesterday. I'm away from the office.

On the MacBook, the versions are:

macOS: Mojave 10.14.1 (18B75) CotEditor: Version 3.6.11 (309) cot command: 2.7.3

Since things work as they should on the MacBook, there is nothing to do here. Feel free to close the issue. I obviously have something wrong on the MacPro.

1024jp commented 5 years ago

Thank you for the additional info.

I found a specific condition in the current CotEditor 3.6.11/cot 2.7.3 that the insertion point is not put at the end of the line when --column -1 is set. Thus, when the document does not end with an empty new line. I'll fix this in the next CotEditor 3.6.12.

Besides, if you find any other conditions for this, please feel free to report them.