Re: [textadept] default eol mode (on OS X)

From: Robert <ro....at.web.de>
Date: Thu, 25 Aug 2011 22:53:13 +0200

On Thu, Aug 25, 2011 at 9:47 PM, mitchell <c....at.caladbolg.net> wrote:
> Robert,
>
> On Thu, 25 Aug 2011, Robert wrote:
>
>> Hi,
>>
>> where is the default eol mode set for new buffers? On OS X it appears
>> to be set to the Windows "\r\n".
>
> I think it is set in the Scintilla C++ code. There is probably a platform
> check that falls back on CRLF.
>
> mitchell
>
I'll ask on scintilla-interest about it.

Could

-- Set default eol mode on OS X.
if OSX then
  events.connect(events.BUFFER_NEW, function()
    buffer.eol_mode = _SCINTILLA.constants.SC_EOL_LF
  end)
end

be added to file_io.lua to have this properly set on OS X?
Doing it in my init.lua is too late for the very first buffer.

Robert
Received on Thu 25 Aug 2011 - 16:53:13 EDT

This archive was generated by hypermail 2.2.0 : Thu 08 Mar 2012 - 12:20:45 EST