diff options
author | Raphael <glephunter@gmail.com> | 2023-12-27 15:18:22 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-27 15:18:22 +0800 |
commit | 382ea4d40282c3ed2e3e1f30b53f060e0b0df498 (patch) | |
tree | fbd1a2b86787f7001c58a7bdb1b5dab1a1940c95 /test/functional/core/startup_spec.lua | |
parent | c26dc1f77c792fe5cbefd578dc8d1e23c80d3688 (diff) | |
download | rneovim-382ea4d40282c3ed2e3e1f30b53f060e0b0df498.tar.gz rneovim-382ea4d40282c3ed2e3e1f30b53f060e0b0df498.tar.bz2 rneovim-382ea4d40282c3ed2e3e1f30b53f060e0b0df498.zip |
fix(inccommand): don't preview in Ex mode (#26587)
Diffstat (limited to 'test/functional/core/startup_spec.lua')
-rw-r--r-- | test/functional/core/startup_spec.lua | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/test/functional/core/startup_spec.lua b/test/functional/core/startup_spec.lua index 44e71c4946..f6f7711c0a 100644 --- a/test/functional/core/startup_spec.lua +++ b/test/functional/core/startup_spec.lua @@ -1097,3 +1097,25 @@ describe('user session', function() eq(1, eval('g:lua_session')) end) end) + +describe('inccommand on ex mode', function() + it('should not preview', function() + clear() + local screen + screen = Screen.new(60, 10) + screen:attach() + local id = funcs.termopen({ nvim_prog, '-u', 'NONE', '-c', 'set termguicolors', '-E', 'test/README.md' }, { + env = { VIMRUNTIME = os.getenv('VIMRUNTIME') } + }) + funcs.chansend(id, '%s/N') + screen:expect{grid=[[ + {1:^ }| + {1: }|*6 + {1:Entering Ex mode. Type "visual" to go to Normal mode. }| + {1::%s/N }| + | + ]], attr_ids={ + [1] = {background = Screen.colors.NvimDarkGrey2, foreground = Screen.colors.NvimLightGrey2}; + }} + end) +end) |