diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-08-24 10:28:32 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-24 10:28:32 +0800 |
commit | 9a100ee169f80cbfe45872939ed9b4f70f6bfe3f (patch) | |
tree | d9a3580d0934d46dd594e05d091e09fd4e0cbc4f /test/functional/ui/popupmenu_spec.lua | |
parent | 64d147b4719310093ca2d728ba68b23f7e0660df (diff) | |
download | rneovim-9a100ee169f80cbfe45872939ed9b4f70f6bfe3f.tar.gz rneovim-9a100ee169f80cbfe45872939ed9b4f70f6bfe3f.tar.bz2 rneovim-9a100ee169f80cbfe45872939ed9b4f70f6bfe3f.zip |
fix(cmdline): do not trigger completion at wrong time (#19920)
Cherry-picked from Vim patches 8.2.4339, 9.0.0238.
Diffstat (limited to 'test/functional/ui/popupmenu_spec.lua')
-rw-r--r-- | test/functional/ui/popupmenu_spec.lua | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/functional/ui/popupmenu_spec.lua b/test/functional/ui/popupmenu_spec.lua index e11cd1e859..dcd4ad3d9a 100644 --- a/test/functional/ui/popupmenu_spec.lua +++ b/test/functional/ui/popupmenu_spec.lua @@ -1990,6 +1990,22 @@ describe('builtin popupmenu', function() efine unplace^ | ]]) + -- Pressing <Left> after that should move the cursor + feed('<Left>') + screen:expect([[ + | + {1:~ }| + {1:~ }| + {1:~ }| + {1:~ }| + {1:~ }| + {1:~ }| + {4: }| + :sign define jump list place und| + efine unplac^e | + ]]) + feed('<End>') + -- Pressing <C-D> when the popup menu is displayed should remove the popup -- menu feed('<C-U>sign <Tab><C-D>') |