aboutsummaryrefslogtreecommitdiff
path: root/modules/textadept/keys.lua
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2013-08-24 14:26:24 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2013-08-24 14:26:24 -0400
commit2052c77111051972d8171d27c8d4c501803e70d6 (patch)
treea38f24f35a3a4dc06f32eb365f439fc2b3918ea7 /modules/textadept/keys.lua
parent58e1d2b46d09b79ad9c43ae177057c8578294649 (diff)
downloadtextadept-2052c77111051972d8171d27c8d4c501803e70d6.tar.gz
textadept-2052c77111051972d8171d27c8d4c501803e70d6.zip
Include Scintilla constants in `buffer`s.
Diffstat (limited to 'modules/textadept/keys.lua')
-rw-r--r--modules/textadept/keys.lua10
1 files changed, 5 insertions, 5 deletions
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