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

From: mitchell <c....at.caladbolg.net>
Date: Thu, 25 Aug 2011 18:59:59 -0400 (EDT)

Robert,

On Thu, 25 Aug 2011, Robert wrote:

> 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.

I will put it in core/gui.lua's BUFFER_NEW event handler instead.

mitchell
Received on Thu 25 Aug 2011 - 18:59:59 EDT

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