diff options
author | mitchell <70453897+667e-11@users.noreply.github.com> | 2020-03-14 12:31:41 -0400 |
---|---|---|
committer | mitchell <70453897+667e-11@users.noreply.github.com> | 2020-03-14 12:31:41 -0400 |
commit | b162c315719c5b386dd048cd989f1aabfe33121d (patch) | |
tree | 733bdf483fa75f4957bfb1d8a2e24e3982ac00b4 /init.lua | |
parent | 51a9603065419f64e1fd191bdf4d8cd95c003064 (diff) |
Removed *~/.textadept/?.{lua,so}* from `package.path`.
This is not used internally and not documented. All modules should be in
*~/.textadept/modules*.
Diffstat (limited to 'init.lua')
-rw-r--r-- | init.lua | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -1,14 +1,13 @@ -- Copyright 2007-2020 Mitchell mitchell.att.foicica.com. See LICENSE. package.path = table.concat({ - _USERHOME..'/?.lua', _USERHOME..'/modules/?.lua', _USERHOME..'/modules/?/init.lua', _HOME..'/modules/?.lua', _HOME..'/modules/?/init.lua', package.path }, ';'); local so = not WIN32 and '/?.so' or '/?.dll' package.cpath = table.concat({ - _USERHOME..so, _USERHOME..'/modules'..so, _HOME..'/modules'..so, package.cpath + _USERHOME..'/modules'..so, _HOME..'/modules'..so, package.cpath }, ';') textadept = require('textadept') @@ -50,7 +49,7 @@ local settings = {} local buffer_mt = getmetatable(buffer) local orig__index, orig__newindex = buffer_mt.__index, buffer_mt.__newindex local function repr(v) - return type(v) == 'string' and string.format("%q", v) or tostring(v) + return string.format(type(v) == 'string' and '%q' or '%s', v) end buffer_mt.__index = function(buffer, k) local v = orig__index(buffer, k) |