aboutsummaryrefslogtreecommitdiff
path: root/modules/textadept
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2020-06-10 17:12:28 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2020-06-10 17:12:28 -0400
commit290d3fec717baf7973fce3e43fb03ac4f126880c (patch)
treeb777187d8b1be41bc133ca74d4d3abf7f429e40d /modules/textadept
parent1db240f243f6263dc2f85b9a65c0f9615e3c7cf9 (diff)
downloadtextadept-290d3fec717baf7973fce3e43fb03ac4f126880c.tar.gz
textadept-290d3fec717baf7973fce3e43fb03ac4f126880c.zip
Renamed some buffer/view fields to use American English instead of Australian.
This requires theme updates, primarily due to colour -> color.
Diffstat (limited to 'modules/textadept')
-rw-r--r--modules/textadept/file_types.lua2
-rw-r--r--modules/textadept/keys.lua2
-rw-r--r--modules/textadept/menu.lua2
3 files changed, 3 insertions, 3 deletions
diff --git a/modules/textadept/file_types.lua b/modules/textadept/file_types.lua
index 34ae1dae..12b2a782 100644
--- a/modules/textadept/file_types.lua
+++ b/modules/textadept/file_types.lua
@@ -71,7 +71,7 @@ local function set_lexer(buffer, lang)
if package.searchpath(lang, package.path) then _M[lang] = require(lang) end
if buffer ~= ui.command_entry then events.emit(events.LEXER_LOADED, lang) end
local last_line = view.first_visible_line + view.lines_on_screen
- buffer:colourise(1, buffer:position_from_line(last_line + 1)) -- refresh
+ buffer:colorize(1, buffer:position_from_line(last_line + 1)) -- refresh
end
-- Gives new buffers lexer-specific functions.
diff --git a/modules/textadept/keys.lua b/modules/textadept/keys.lua
index 212f85ea..87f20c1f 100644
--- a/modules/textadept/keys.lua
+++ b/modules/textadept/keys.lua
@@ -512,7 +512,7 @@ if OSX then
buffer:line_end_extend()
if not buffer.selection_empty then buffer:cut() else buffer:clear() end
end
- keys.cl = view.vertical_centre_caret
+ keys.cl = view.vertical_center_caret
-- GTK-OSX reports Fn-key as a single keycode which confuses Scintilla. Do
-- not propagate it.
keys.fn = function() return true end
diff --git a/modules/textadept/menu.lua b/modules/textadept/menu.lua
index 19262ca6..5db2d259 100644
--- a/modules/textadept/menu.lua
+++ b/modules/textadept/menu.lua
@@ -304,7 +304,7 @@ local default_menubar = {
end},
SEPARATOR,
{_L['Select Lexer...'], textadept.file_types.select_lexer},
- {_L['Refresh Syntax Highlighting'], function() buffer:colourise(1, -1) end}
+ {_L['Refresh Syntax Highlighting'], function() buffer:colorize(1, -1) end}
},
{
title = _L['View'],