diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2016-11-07 00:08:23 +0100 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2016-11-08 21:21:46 +0100 |
commit | 3ccf69c1ded94c0c3cac50d21dc6d55e5f7a8a21 (patch) | |
tree | 4f043810be44d222e4926283436ef4a3f621a3c6 | |
parent | d0689eb0b2473de479396b77fb685954d65d994c (diff) | |
download | rneovim-3ccf69c1ded94c0c3cac50d21dc6d55e5f7a8a21.tar.gz rneovim-3ccf69c1ded94c0c3cac50d21dc6d55e5f7a8a21.tar.bz2 rneovim-3ccf69c1ded94c0c3cac50d21dc6d55e5f7a8a21.zip |
'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.
-rw-r--r-- | src/nvim/ex_cmds.c | 2 | ||||
-rw-r--r-- | test/functional/ui/incsubstitute_spec.lua | 22 |
2 files changed, 12 insertions, 12 deletions
diff --git a/src/nvim/ex_cmds.c b/src/nvim/ex_cmds.c index 6d4533f318..bf78be9f13 100644 --- a/src/nvim/ex_cmds.c +++ b/src/nvim/ex_cmds.c @@ -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); diff --git a/test/functional/ui/incsubstitute_spec.lua b/test/functional/ui/incsubstitute_spec.lua index e52e12a8ce..95bed1ac95 100644 --- a/test/functional/ui/incsubstitute_spec.lua +++ b/test/functional/ui/incsubstitute_spec.lua @@ -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 |