diff options
-rw-r--r-- | .github/workflows/ci.yml | 6 | ||||
-rwxr-xr-x | .github/workflows/env.sh | 2 | ||||
-rw-r--r-- | src/nvim/api/private/helpers.c | 3 |
3 files changed, 6 insertions, 5 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a67a44407b..7fef198934 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,7 +23,7 @@ jobs: matrix: include: - flavor: asan - cc: clang-12 + cc: clang-13 runner: ubuntu-20.04 os: linux - flavor: lint @@ -31,7 +31,7 @@ jobs: runner: ubuntu-20.04 os: linux - flavor: tsan - cc: clang-12 + cc: clang-13 runner: ubuntu-20.04 os: linux - cc: clang @@ -63,7 +63,7 @@ jobs: run: | wget https://apt.llvm.org/llvm.sh chmod a+x llvm.sh - sudo ./llvm.sh 12 + sudo ./llvm.sh 13 rm llvm.sh - name: Install brew packages diff --git a/.github/workflows/env.sh b/.github/workflows/env.sh index a30e06ae26..d1bc412399 100755 --- a/.github/workflows/env.sh +++ b/.github/workflows/env.sh @@ -34,7 +34,7 @@ case "$FLAVOR" in BUILD_FLAGS="$BUILD_FLAGS -DPREFER_LUA=ON" cat <<EOF >> "$GITHUB_ENV" CLANG_SANITIZER=ASAN_UBSAN -SYMBOLIZER=asan_symbolize-12 +SYMBOLIZER=asan_symbolize-13 ASAN_OPTIONS=detect_leaks=1:check_initialization_order=1:log_path=$GITHUB_WORKSPACE/build/log/asan UBSAN_OPTIONS=print_stacktrace=1 log_path=$GITHUB_WORKSPACE/build/log/ubsan EOF diff --git a/src/nvim/api/private/helpers.c b/src/nvim/api/private/helpers.c index 0c7ba1845c..4884a44cea 100644 --- a/src/nvim/api/private/helpers.c +++ b/src/nvim/api/private/helpers.c @@ -606,7 +606,8 @@ void modify_keymap(Buffer buffer, bool is_unmap, String mode, String lhs, String } if (opts != NULL && opts->callback.type == kObjectTypeLuaRef) { - lua_funcref = api_new_luaref(opts->callback.data.luaref); + lua_funcref = opts->callback.data.luaref; + opts->callback.data.luaref = LUA_NOREF; } MapArguments parsed_args = MAP_ARGUMENTS_INIT; if (opts) { |