aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--core/locale.conf1
-rw-r--r--modules/textadept/menu.lua11
2 files changed, 0 insertions, 12 deletions
diff --git a/core/locale.conf b/core/locale.conf
index d18fbfb3..43801b67 100644
--- a/core/locale.conf
+++ b/core/locale.conf
@@ -225,7 +225,6 @@ Help = _Help
Show Manual = Show _Manual
Show LuaDoc = Show _LuaDoc
gtk-about = gtk-about
-Lexers = _Lexers
Unknown command: = Unknown command:
Run Command = Run Command
Command = Command
diff --git a/modules/textadept/menu.lua b/modules/textadept/menu.lua
index 82b8cc65..dd25b195 100644
--- a/modules/textadept/menu.lua
+++ b/modules/textadept/menu.lua
@@ -61,11 +61,6 @@ local function set_eol_mode(mode)
buffer:convert_eo_ls(mode)
events.emit(events.UPDATE_UI) -- for updating statusbar
end
-local function set_lexer(lexer)
- buffer:set_lexer(lexer)
- buffer:colourise(0, -1)
- events.emit(events.UPDATE_UI) -- for updating statusbar
-end
local function open_webpage(url)
local cmd
if WIN32 then
@@ -315,7 +310,6 @@ menubar = {
menuitem('Zoom Out', _buffer.zoom_out),
menuitem('Reset Zoom', function() buffer.zoom = 0 end),
},
- -- Lexer menu inserted here
{ title = L('Help'),
menuitem('Show Manual',
{ open_webpage, _HOME..'/doc/manual/1_Introduction.html' }),
@@ -325,11 +319,6 @@ menubar = {
'--informative-text', _RELEASE, '--no-cancel' }),
},
}
-local lexer_menu = { title = L('Lexers') }
-for _, lexer in ipairs(_m.textadept.mime_types.lexers) do
- lexer_menu[#lexer_menu + 1] = { lexer:gsub('_', '__'), { set_lexer, lexer } }
-end
-table.insert(menubar, #menubar, lexer_menu) -- before 'Help'
---
-- Contains the right-click context menu.