diff options
author | 2013-08-24 14:26:24 -0400 | |
---|---|---|
committer | 2013-08-24 14:26:24 -0400 | |
commit | 2052c77111051972d8171d27c8d4c501803e70d6 (patch) | |
tree | a38f24f35a3a4dc06f32eb365f439fc2b3918ea7 /modules/textadept/menu.lua | |
parent | 58e1d2b46d09b79ad9c43ae177057c8578294649 (diff) | |
download | textadept-2052c77111051972d8171d27c8d4c501803e70d6.tar.gz textadept-2052c77111051972d8171d27c8d4c501803e70d6.zip |
Include Scintilla constants in `buffer`s.
Diffstat (limited to 'modules/textadept/menu.lua')
-rw-r--r-- | modules/textadept/menu.lua | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/modules/textadept/menu.lua b/modules/textadept/menu.lua index 5af1f0a9..0810b15b 100644 --- a/modules/textadept/menu.lua +++ b/modules/textadept/menu.lua @@ -13,7 +13,7 @@ module('_M.textadept.menu')]] local _L, _M, buffer, view = _L, _M, buffer, view local m_editing, utils = _M.textadept.editing, _M.textadept.keys.utils -local SEPARATOR, c = {''}, _SCINTILLA.constants +local SEPARATOR = {''} -- The default main menubar. local menubar = { @@ -145,9 +145,9 @@ local menubar = { {_L['_Convert Indentation'], m_editing.convert_indentation}, }, { title = _L['_EOL Mode'], - {_L['CRLF'], {utils.set_eol_mode, c.SC_EOL_CRLF}}, - {_L['CR'], {utils.set_eol_mode, c.SC_EOL_CR}}, - {_L['LF'], {utils.set_eol_mode, c.SC_EOL_LF}}, + {_L['CRLF'], {utils.set_eol_mode, buffer.SC_EOL_CRLF}}, + {_L['CR'], {utils.set_eol_mode, buffer.SC_EOL_CR}}, + {_L['LF'], {utils.set_eol_mode, buffer.SC_EOL_LF}}, }, { title = _L['E_ncoding'], {_L['_UTF-8 Encoding'], {utils.set_encoding, 'UTF-8'}}, @@ -179,7 +179,8 @@ local menubar = { {utils.toggle_property, 'indentation_guides'}}, {_L['Toggle View White_space'], {utils.toggle_property, 'view_ws'}}, {_L['Toggle _Virtual Space'], - {utils.toggle_property, 'virtual_space_options', c.SCVS_USERACCESSIBLE}}, + {utils.toggle_property, 'virtual_space_options', + buffer.SCVS_USERACCESSIBLE}}, SEPARATOR, {_L['Zoom _In'], buffer.zoom_in}, {_L['Zoom _Out'], buffer.zoom_out}, |