diff options
author | Sean Dewar <seandewar@users.noreply.github.com> | 2023-04-18 10:01:42 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-18 10:01:42 +0100 |
commit | 9033d5eccc505d31b4a95d9fd23a7e2a8d2f282c (patch) | |
tree | 70b76b061e9b54c57baa2ea17b5e2e6f74612e79 /test/functional/legacy/cmdline_spec.lua | |
parent | d4eff4052a29079e108b5efcb030f07643978994 (diff) | |
parent | 65dd3c1180cef5ec15a46bd278ab3a0cb1c3460d (diff) | |
download | rneovim-9033d5eccc505d31b4a95d9fd23a7e2a8d2f282c.tar.gz rneovim-9033d5eccc505d31b4a95d9fd23a7e2a8d2f282c.tar.bz2 rneovim-9033d5eccc505d31b4a95d9fd23a7e2a8d2f282c.zip |
Merge pull request #23005 from seandewar/fix-ruf-cmdline-pos
fix(ruler): fix some ruler issues with no statusline
Diffstat (limited to 'test/functional/legacy/cmdline_spec.lua')
-rw-r--r-- | test/functional/legacy/cmdline_spec.lua | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test/functional/legacy/cmdline_spec.lua b/test/functional/legacy/cmdline_spec.lua index 2fceb6a132..f7df6ae8d7 100644 --- a/test/functional/legacy/cmdline_spec.lua +++ b/test/functional/legacy/cmdline_spec.lua @@ -239,6 +239,25 @@ describe('cmdline', function() | ]]) end) + + -- oldtest: Test_rulerformat_position() + it("ruler has correct position with 'rulerformat' set", function() + local screen = Screen.new(20, 3) + screen:set_default_attr_ids { + [0] = {bold = true, foreground = Screen.colors.Blue}, -- NonText + } + screen:attach() + meths.set_option('ruler', true) + meths.set_option('rulerformat', 'longish') + meths.set_option('laststatus', 0) + meths.set_option('winwidth', 1) + feed [[<C-W>v<C-W>|<C-W>p]] + screen:expect [[ + │^ | + {0:~ }│{0:~}| + longish | + ]] + end) end) describe('cmdwin', function() |