mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
'inccommand': set buffer name to [Preview]
[inc_sub] is less obvious for users. Also, in the future we may want to generalize the idea of a "preview buffer", or "incremental commands" besides :substitute.
This commit is contained in:
parent
d0689eb0b2
commit
3ccf69c1de
@ -6049,7 +6049,7 @@ static buf_T *incsub_display(char_u *pat, char_u *sub,
|
||||
}
|
||||
|
||||
if (split && win_split((int)p_cwh, WSP_BOT) != FAIL) {
|
||||
buf_open_special(incsub_buf ? bufnr : 0, "[inc_sub]", "incsub");
|
||||
buf_open_special(incsub_buf ? bufnr : 0, "[Preview]", "incsub");
|
||||
buf_clear();
|
||||
incsub_buf = curbuf;
|
||||
set_option_value((char_u *)"bh", 0L, (char_u *)"hide", OPT_LOCAL);
|
||||
|
@ -597,7 +597,7 @@ describe("incsubstitute=split", function()
|
||||
{15:~ }|
|
||||
{15:~ }|
|
||||
{15:~ }|
|
||||
{10:[inc_sub] }|
|
||||
{10:[Preview] }|
|
||||
:%s/tw^ |
|
||||
]])
|
||||
end)
|
||||
@ -618,7 +618,7 @@ describe("incsubstitute=split", function()
|
||||
{15:~ }|
|
||||
{15:~ }|
|
||||
{15:~ }|
|
||||
{10:[inc_sub] }|
|
||||
{10:[Preview] }|
|
||||
:%s/tw/^ |
|
||||
]])
|
||||
|
||||
@ -637,7 +637,7 @@ describe("incsubstitute=split", function()
|
||||
{15:~ }|
|
||||
{15:~ }|
|
||||
{15:~ }|
|
||||
{10:[inc_sub] }|
|
||||
{10:[Preview] }|
|
||||
:%s/tw/x^ |
|
||||
]])
|
||||
|
||||
@ -656,7 +656,7 @@ describe("incsubstitute=split", function()
|
||||
{15:~ }|
|
||||
{15:~ }|
|
||||
{15:~ }|
|
||||
{10:[inc_sub] }|
|
||||
{10:[Preview] }|
|
||||
:%s/tw/^ |
|
||||
]])
|
||||
|
||||
@ -678,7 +678,7 @@ describe("incsubstitute=split", function()
|
||||
{15:~ }|
|
||||
{15:~ }|
|
||||
{15:~ }|
|
||||
{10:[inc_sub] }|
|
||||
{10:[Preview] }|
|
||||
:%s/tw/XX^ |
|
||||
]])
|
||||
end)
|
||||
@ -723,7 +723,7 @@ describe("incsubstitute=split", function()
|
||||
{15:~ }|
|
||||
{15:~ }|
|
||||
{15:~ }|
|
||||
{10:[inc_sub] }|
|
||||
{10:[Preview] }|
|
||||
:%s/tw^ |
|
||||
]])
|
||||
end)
|
||||
@ -746,7 +746,7 @@ describe("incsubstitute=split", function()
|
||||
{15:~ }|
|
||||
{15:~ }|
|
||||
{15:~ }|
|
||||
{10:[inc_sub] }|
|
||||
{10:[Preview] }|
|
||||
:%s/M/123/g^ |
|
||||
]])
|
||||
end)
|
||||
@ -794,7 +794,7 @@ describe("incsubstitute=split", function()
|
||||
[1009]{12:X}o lines |
|
||||
[1011]{12:X}o lines |
|
||||
[1013]{12:X}o lines |
|
||||
{10:[inc_sub] }|
|
||||
{10:[Preview] }|
|
||||
:%s/tw/X^ |
|
||||
]])
|
||||
end)
|
||||
@ -1204,7 +1204,7 @@ describe("'incsubstitute': split windows", function()
|
||||
{15:~ }|
|
||||
{15:~ }|
|
||||
{15:~ }|
|
||||
{10:[inc_sub] }|
|
||||
{10:[Preview] }|
|
||||
:%s/tw^ |
|
||||
]])
|
||||
|
||||
@ -1243,7 +1243,7 @@ describe("'incsubstitute': split windows", function()
|
||||
{15:~ }|
|
||||
{15:~ }|
|
||||
{15:~ }|
|
||||
{10:[inc_sub] }|
|
||||
{10:[Preview] }|
|
||||
:%s/tw^ |
|
||||
]])
|
||||
end)
|
||||
@ -1293,7 +1293,7 @@ describe("'incsubstitute': split windows", function()
|
||||
{15:~ }|
|
||||
{15:~ }|
|
||||
{15:~ }|
|
||||
{10:[inc_sub] }|
|
||||
{10:[Preview] }|
|
||||
:%s/tw^ |
|
||||
]])
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user