Permalink
Browse files

Changes to pull request #10 (also closes issue #11)

  • Loading branch information...
1 parent 6caa0da commit 2f29afee3241be54294a92169dce59babbd32479 @xolox committed May 12, 2013
Showing with 3 additions and 2 deletions.
  1. +3 −2 misc/lua-ftplugin/omnicomplete.lua
@@ -3,7 +3,7 @@
--[[
Author: Peter Odding <peter@peterodding.com>
-Last Change: November 25, 2011
+Last Change: May 12, 2013
URL: http://peterodding.com/code/vim/lua-ftplugin
This Lua script is executed by the Lua file type plug-in for Vim to provide
@@ -74,7 +74,8 @@ end
-- Load installed modules.
-- XXX What if module loading has side effects? It shouldn't, but still...
-for _, modulename in (type(arg) == 'table' and ipairs(arg) or arg()) do
+for i = 1, #arg do
+ local modulename = arg[i]
local status, module = pcall(require, modulename)
if status and module and not _G[modulename] then
_G[modulename] = module

0 comments on commit 2f29afe

Please sign in to comment.