diff options
author | luukvbaal <luukvbaal@gmail.com> | 2025-01-02 15:40:39 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-01-02 06:40:39 -0800 |
commit | 43d552c56648bc3125c7509b3d708b6bf6c0c09c (patch) | |
tree | 0fe37677e6184c9229fce1a8d8dbb9e7f3dff6b4 /test/functional/ui/cmdline_spec.lua | |
parent | 48e2a73610ca5639408f79b3d8eebd3e5f57a327 (diff) | |
download | rneovim-43d552c56648bc3125c7509b3d708b6bf6c0c09c.tar.gz rneovim-43d552c56648bc3125c7509b3d708b6bf6c0c09c.tar.bz2 rneovim-43d552c56648bc3125c7509b3d708b6bf6c0c09c.zip |
feat(ui): more intuitive :substitute confirm prompt #31787
Problem: Unknown key mappings listed in substitute confirm message.
Solution: Include hints as to what the key mappings do.
Diffstat (limited to 'test/functional/ui/cmdline_spec.lua')
-rw-r--r-- | test/functional/ui/cmdline_spec.lua | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/test/functional/ui/cmdline_spec.lua b/test/functional/ui/cmdline_spec.lua index 1f7d5525f3..93ea2b9186 100644 --- a/test/functional/ui/cmdline_spec.lua +++ b/test/functional/ui/cmdline_spec.lua @@ -1485,10 +1485,10 @@ describe('cmdheight=0', function() it('when substitute text', function() command('set cmdheight=0 noruler laststatus=3') feed('ifoo<ESC>') - screen:try_resize(screen._width, 6) + screen:try_resize(screen._width, 7) screen:expect([[ fo^o | - {1:~ }|*4 + {1:~ }|*5 {3:[No Name] [+] }| ]]) @@ -1497,14 +1497,15 @@ describe('cmdheight=0', function() {2:foo} | {3: }| |*2 - {6:replace with bar (y/n/a/q}| - {6:/l/^E/^Y)?}^ | + {6:replace with bar? (y)es/(}| + {6:n)o/(a)ll/(q)uit/(l)ast/s}| + {6:croll up(^E)/down(^Y)}^ | ]]) feed('y') screen:expect([[ ^bar | - {1:~ }|*4 + {1:~ }|*5 {3:[No Name] [+] }| ]]) |