From 8126ccef76af6b2cb2e1c26b529c66263a8347620aaec8545e13c29693b00087 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Mon, 9 Aug 2021 21:19:25 +0000 Subject: [PATCH] Update neovim-0.1.7-bitop.patch OBS-URL: https://build.opensuse.org/package/show/editors/neovim?expand=0&rev=87 --- neovim-0.1.7-bitop.patch | 27 ++++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/neovim-0.1.7-bitop.patch b/neovim-0.1.7-bitop.patch index 5f3eda4..5785708 100644 --- a/neovim-0.1.7-bitop.patch +++ b/neovim-0.1.7-bitop.patch @@ -1,10 +1,20 @@ --- - CMakeLists.txt | 2 +- - src/nvim/ex_cmds.lua | 2 +- - 2 files changed, 2 insertions(+), 2 deletions(-) + CMakeLists.txt | 4 ++-- + src/nvim/ex_cmds.lua | 2 +- + src/nvim/generators/gen_ex_cmds.lua | 2 +- + 3 files changed, 4 insertions(+), 4 deletions(-) --- a/CMakeLists.txt +++ b/CMakeLists.txt +@@ -413,7 +413,7 @@ endif() + option(PREFER_LUA "Prefer Lua over LuaJIT in the nvim executable." OFF) + + if(PREFER_LUA) +- find_package(Lua 5.1 REQUIRED) ++ find_package(Lua 5.1 EXACT REQUIRED) + set(LUA_PREFERRED_INCLUDE_DIRS ${LUA_INCLUDE_DIR}) + set(LUA_PREFERRED_LIBRARIES ${LUA_LIBRARIES}) + # Passive (not REQUIRED): if LUAJIT_FOUND is not set, nvim-test is skipped. @@ -517,7 +517,7 @@ endforeach() # Find Lua interpreter @@ -22,3 +32,14 @@ local module = {} +--- a/src/nvim/generators/gen_ex_cmds.lua ++++ b/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