Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit 2f29afee3241be54294a92169dce59babbd32479 1 parent 6caa0da
@xolox authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 misc/lua-ftplugin/omnicomplete.lua
View
5 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
Please sign in to comment.
Something went wrong with that request. Please try again.