A RetroSearch Logo

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

Search Query:

Showing content from https://github.com/neovim/neovim/commit/42e5fd32b0f551358659e7ea5966c087446fe97a below:

prevent K_LUA from closing pum · neovim/neovim@42e5fd3 · GitHub

File tree Expand file treeCollapse file tree 2 files changed

+11

-1

lines changed

Filter options

Expand file treeCollapse file tree 2 files changed

+11

-1

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

@@ -3620,7 +3620,7 @@ static bool ins_compl_prep(int c)

3620 3620

// Ignore end of Select mode mapping and mouse scroll buttons.

3621 3621

if (c == K_SELECT || c == K_MOUSEDOWN || c == K_MOUSEUP

3622 3622

|| c == K_MOUSELEFT || c == K_MOUSERIGHT || c == K_EVENT

3623 -

|| c == K_COMMAND) {

3623 +

|| c == K_COMMAND || c == K_LUA) {

3624 3624

return retval;

3625 3625

}

3626 3626 Original file line number Diff line number Diff line change

@@ -820,6 +820,16 @@ describe('nvim_set_keymap, nvim_del_keymap', function()

820 820

eq(99, exec_lua[[return SomeValue]])

821 821

end)

822 822 823 +

it('does not reset pum in lua mapping', function()

824 +

eq(0, exec_lua [[

825 +

VisibleCount = 0

826 +

vim.api.nvim_set_keymap ('i', '<F2>', '', {callback = function() VisibleCount = VisibleCount + vim.fn.pumvisible() end})

827 +

return VisibleCount

828 +

]])

829 +

feed('i<C-X><C-V><F2><F2><esc>')

830 +

eq(2, exec_lua[[return VisibleCount]])

831 +

end)

832 + 823 833

it('can overwrite lua mappings', function()

824 834

eq(0, exec_lua [[

825 835

GlobalCount = 0

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