aboutsummaryrefslogtreecommitdiff
path: root/test/functional/ui/screen.lua
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2019-03-04 10:59:44 +0100
committerBjörn Linse <bjorn.linse@gmail.com>2019-03-16 19:53:21 +0100
commitbe8ebba325451b387c0aedacfcda6c53e6c51188 (patch)
tree6ee90da21194166b5163fa6375e4f50ab1813626 /test/functional/ui/screen.lua
parent175398f21645552b708a7626309b826ae0f3d8a8 (diff)
downloadrneovim-be8ebba325451b387c0aedacfcda6c53e6c51188.tar.gz
rneovim-be8ebba325451b387c0aedacfcda6c53e6c51188.tar.bz2
rneovim-be8ebba325451b387c0aedacfcda6c53e6c51188.zip
Allow using internal popupmenu or ext_popupmenu for wildmenu
Deprecate ext_wildmenu. ext_popupmenu already contains more state (anchor position), and will allow further expansion (info about items).
Diffstat (limited to 'test/functional/ui/screen.lua')
-rw-r--r--test/functional/ui/screen.lua5
1 files changed, 1 insertions, 4 deletions
diff --git a/test/functional/ui/screen.lua b/test/functional/ui/screen.lua
index 8b1b77eb81..d072444ee1 100644
--- a/test/functional/ui/screen.lua
+++ b/test/functional/ui/screen.lua
@@ -937,10 +937,7 @@ function Screen:_handle_option_set(name, value)
end
function Screen:_handle_popupmenu_show(items, selected, row, col, grid)
- if (not self._options.ext_multigrid) and grid == 1 then
- grid = nil
- end
- self.popupmenu = {items=items, pos=selected, anchor={row, col, grid}}
+ self.popupmenu = {items=items, pos=selected, anchor={grid, row, col}}
end
function Screen:_handle_popupmenu_select(selected)