From 2052c77111051972d8171d27c8d4c501803e70d6 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Sat, 24 Aug 2013 14:26:24 -0400 Subject: Include Scintilla constants in `buffer`s. --- modules/textadept/keys.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'modules/textadept/keys.lua') diff --git a/modules/textadept/keys.lua b/modules/textadept/keys.lua index 17c403ea..c81f3602 100644 --- a/modules/textadept/keys.lua +++ b/modules/textadept/keys.lua @@ -305,7 +305,7 @@ constantize_menu_buffer_functions() -- for the first buffer local _M, keys, buffer, view = _M, keys, buffer, view local m_editing, utils = _M.textadept.editing, M.utils -local OSX, CURSES, c = OSX, CURSES, _SCINTILLA.constants +local OSX, CURSES = OSX, CURSES -- Windows and Linux key bindings. -- @@ -516,9 +516,9 @@ if CURSES then keys.mT = keys.mt end -- in case mt is used by GUI terminals keys[not OSX and (not CURSES and 'cai' or 'mi') or 'ci'] = m_editing.convert_indentation -- EOL Mode. --- TODO: {utils.set_eol_mode, c.SC_EOL_CRLF} --- TODO: {utils.set_eol_mode, c.SC_EOL_CR} --- TODO: {utils.set_eol_mode, c.SC_EOL_LF} +-- TODO: {utils.set_eol_mode, buffer.SC_EOL_CRLF} +-- TODO: {utils.set_eol_mode, buffer.SC_EOL_CR} +-- TODO: {utils.set_eol_mode, buffer.SC_EOL_LF} -- Encoding. -- TODO: {utils.set_encoding, 'UTF-8'} -- TODO: {utils.set_encoding, 'ASCII'} @@ -552,7 +552,7 @@ if not CURSES then {utils.toggle_property, 'indentation_guides'} keys[not OSX and 'caS' or 'cS'] = {utils.toggle_property, 'view_ws'} keys[not OSX and 'caV' or 'cV'] = - {utils.toggle_property, 'virtual_space_options', c.SCVS_USERACCESSIBLE} + {utils.toggle_property, 'virtual_space_options', buffer.SCVS_USERACCESSIBLE} end keys[not OSX and not CURSES and 'c=' or 'm='] = buffer.zoom_in keys[not OSX and not CURSES and 'c-' or 'm-'] = buffer.zoom_out -- cgit v1.2.3