Skip to content

Commit 4129e6e

Browse files
committed
Do not forward-declare localizations.
This is a remnant from when _L returned something different if a localization did not exist.
1 parent 4629378 commit 4129e6e

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

init.lua

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,6 @@
2525
-- @module lua_repl
2626
local M = {}
2727

28-
-- Localizations.
29-
if not rawget(_L, 'Lua REPL') then
30-
_L['Lua REPL'] = 'L_ua REPL'
31-
_L['[Lua REPL]'] = '[Lua REPL]'
32-
end
33-
3428
--- A special environment for a Lua REPL.
3529
-- It has an `__index` metafield for accessing Textadept's global environment.
3630
-- @table env
@@ -209,6 +203,7 @@ function M.open(new)
209203
end
210204

211205
-- Add REPL to Tools menu.
206+
_L['Lua REPL'] = 'L_ua REPL'
212207
table.insert(textadept.menu.menubar['Tools'], {''})
213208
table.insert(textadept.menu.menubar['Tools'], {_L['Lua REPL'], M.open})
214209

0 commit comments

Comments
 (0)