Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Get EOL #144

Open
redbassett opened this issue Mar 16, 2016 · 1 comment
Open

Get EOL #144

redbassett opened this issue Mar 16, 2016 · 1 comment

Comments

@redbassett
Copy link

There currently is no publicly available API to get the buffer's EOL character from a package. The current getPreferredLineEnding() method returns null for my editor, which is using the default line endings. Can the get method be updated to return the correct character type every time?

@maxbrunsfeld
Copy link
Contributor

A buffer can have different line endings for different lines. You can use the lineEndingForRow method to retrieve the line ending for a given row.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants