A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/neovim/neovim/commit/9f489f591dbbe57d023f42f64a8a94524823c56f below:

elide luaref copy when setting 'callback' in nvim_set_keymap · neovim/neovim@9f489f5 · GitHub

File tree Expand file treeCollapse file tree 1 file changed

+2

-1

lines changed

Filter options

Expand file treeCollapse file tree 1 file changed

+2

-1

lines changed Original file line number Diff line number Diff line change

@@ -606,7 +606,8 @@ void modify_keymap(Buffer buffer, bool is_unmap, String mode, String lhs, String

606 606

}

607 607 608 608

if (opts != NULL && opts->callback.type == kObjectTypeLuaRef) {

609 -

lua_funcref = api_new_luaref(opts->callback.data.luaref);

609 +

lua_funcref = opts->callback.data.luaref;

610 +

opts->callback.data.luaref = LUA_NOREF;

610 611

}

611 612

MapArguments parsed_args = MAP_ARGUMENTS_INIT;

612 613

if (opts) {

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4