mirror of
https://github.com/neovim/neovim.git
synced 2025-10-26 12:27:24 +00:00
feat: add preview functionality to user commands
Adds a Lua-only `preview` flag to user commands which allows the command to be incrementally previewed like `:substitute` when 'inccommand' is set.
This commit is contained in:
@@ -3660,10 +3660,10 @@ describe('float window', function()
|
||||
screen:expect{grid=[[
|
||||
## grid 1
|
||||
[2:----------------------------------------]|
|
||||
{5:[No Name] }|
|
||||
[5:----------------------------------------]|
|
||||
[5:----------------------------------------]|
|
||||
[5:----------------------------------------]|
|
||||
[2:----------------------------------------]|
|
||||
[2:----------------------------------------]|
|
||||
[2:----------------------------------------]|
|
||||
[2:----------------------------------------]|
|
||||
{5:[Preview] }|
|
||||
[3:----------------------------------------]|
|
||||
## grid 2
|
||||
@@ -3674,10 +3674,6 @@ describe('float window', function()
|
||||
{17:f}{1:oo }|
|
||||
{17:b}{1:ar }|
|
||||
{1: }|
|
||||
## grid 5
|
||||
|1| {17:f}oo |
|
||||
|2| {17:b}ar |
|
||||
{0:~ }|
|
||||
]], float_pos=expected_pos}
|
||||
else
|
||||
screen:expect([[
|
||||
|
||||
Reference in New Issue
Block a user