-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathneovim-lua-bit32.patch
36 lines (32 loc) · 1.22 KB
/
neovim-lua-bit32.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
Index: neovim-0.5.0/CMakeLists.txt
===================================================================
--- neovim-0.5.0.orig/CMakeLists.txt
+++ neovim-0.5.0/CMakeLists.txt
@@ -517,7 +517,7 @@ endforeach()
# Find Lua interpreter
include(LuaHelpers)
-set(LUA_DEPENDENCIES lpeg mpack bit)
+set(LUA_DEPENDENCIES lpeg mpack bit32)
if(NOT LUA_PRG)
foreach(CURRENT_LUA_PRG luajit lua5.1 lua5.2 lua)
unset(_CHECK_LUA_PRG CACHE)
Index: neovim-0.5.0/src/nvim/ex_cmds.lua
===================================================================
--- neovim-0.5.0.orig/src/nvim/ex_cmds.lua
+++ neovim-0.5.0/src/nvim/ex_cmds.lua
@@ -1,4 +1,4 @@
-local bit = require 'bit'
+local bit = require 'bit32'
local module = {}
Index: neovim-0.5.0/src/nvim/generators/gen_ex_cmds.lua
===================================================================
--- neovim-0.5.0.orig/src/nvim/generators/gen_ex_cmds.lua
+++ neovim-0.5.0/src/nvim/generators/gen_ex_cmds.lua
@@ -22,7 +22,7 @@ local defsfname = autodir .. '/ex_cmds_d
local enumfile = io.open(enumfname, 'w')
local defsfile = io.open(defsfname, 'w')
-local bit = require 'bit'
+local bit = require 'bit32'
local ex_cmds = require('ex_cmds')
local defs = ex_cmds.cmds
local flags = ex_cmds.flags