mirror of
https://github.com/neovim/neovim.git
synced 2025-10-26 12:27:24 +00:00
popupmenu: don't use 'rightleft' option in cmdline mode
Cmdline is always drawn from the left to right, so using rightleft popupmenu is not useful here
This commit is contained in:
@@ -1338,7 +1338,7 @@ describe('builtin popupmenu', function()
|
||||
end)
|
||||
|
||||
it('with rightleft window', function()
|
||||
command("set rl")
|
||||
command("set rl wildoptions+=pum")
|
||||
feed('isome rightleft ')
|
||||
screen:expect([[
|
||||
^ tfelthgir emos|
|
||||
@@ -1435,6 +1435,55 @@ describe('builtin popupmenu', function()
|
||||
{1: ~}|
|
||||
{2:-- INSERT --} |
|
||||
]])
|
||||
|
||||
-- not rightleft on the cmdline
|
||||
feed('<esc>:sign ')
|
||||
screen:expect{grid=[[
|
||||
drow tfelthgir emos|
|
||||
{1: ~}|
|
||||
{1: ~}|
|
||||
{1: ~}|
|
||||
{1: ~}|
|
||||
{1: ~}|
|
||||
{1: ~}|
|
||||
{1: ~}|
|
||||
{1: ~}|
|
||||
{1: ~}|
|
||||
{1: ~}|
|
||||
{1: ~}|
|
||||
{1: ~}|
|
||||
{1: ~}|
|
||||
{1: ~}|
|
||||
{1: ~}|
|
||||
{1: ~}|
|
||||
{1: ~}|
|
||||
{1: ~}|
|
||||
:sign ^ |
|
||||
]]}
|
||||
|
||||
feed('<tab>')
|
||||
screen:expect{grid=[[
|
||||
drow tfelthgir emos|
|
||||
{1: ~}|
|
||||
{1: ~}|
|
||||
{1: ~}|
|
||||
{1: ~}|
|
||||
{1: ~}|
|
||||
{1: ~}|
|
||||
{1: ~}|
|
||||
{1: ~}|
|
||||
{1: ~}|
|
||||
{1: ~}|
|
||||
{1: ~}|
|
||||
{1: ~}|
|
||||
{1: }{s: define }{1: ~}|
|
||||
{1: }{n: jump }{1: ~}|
|
||||
{1: }{n: list }{1: ~}|
|
||||
{1: }{n: place }{1: ~}|
|
||||
{1: }{n: undefine }{1: ~}|
|
||||
{1: }{n: unplace }{1: ~}|
|
||||
:sign define^ |
|
||||
]]}
|
||||
end)
|
||||
|
||||
it('with multiline messages', function()
|
||||
|
||||
Reference in New Issue
Block a user