# HG changeset patch # User Bram Moolenaar # Date 1547235905 -3600 # Node ID 80e79573dd6eab638e441f337fa3a48bae3f0270 # Parent 85ab9a28878440fc06ae478ef9fa6604a3033552 patch 8.1.0725: conceal mode is not completely tested commit https://github.com/vim/vim/commit/465e8b5985908596261cef9d671024ed8ded1ce3 Author: Bram Moolenaar Date: Fri Jan 11 20:42:28 2019 +0100 patch 8.1.0725: conceal mode is not completely tested Problem: Conceal mode is not completely tested. Solution: Add tests for moving the cursor in Insert mode. diff --git a/src/testdir/dumps/Test_conceal_two_windows_10.dump b/src/testdir/dumps/Test_conceal_two_windows_10.dump new file mode 100644 --- /dev/null +++ b/src/testdir/dumps/Test_conceal_two_windows_10.dump @@ -0,0 +1,20 @@ +|o+0&#ffffff0|n|e| |o|n|e| |o|n|e| |o|n|e| |o|n|e| @55 +|t|w|o| @1|h|e|r|e| @65 +|t|h|r|e@1| @1|t|h|r|e@1| @62 +|S|e|c|o|n|d| |w|i|n|d|o|w| @61 +|~+0#4040ff13&| @73 +|~| @73 +|~| @73 +|~| @73 +|~| @73 +|[+1#0000000&|N|o| |N|a|m|e|]| |[|+|]| @43|3|,|1|4| @10|A|l@1 +|o+0&&|n|e| |o|n|e| |o|n|e| |o|n|e| |o|n|e| @55 +|t|w|o| |||h|i|d@1|e|n||| |h>e|r|e| @57 +|t|h|r|e@1| @1|t|h|r|e@1| @62 +|~+0#4040ff13&| @73 +|~| @73 +|~| @73 +|~| @73 +|~| @73 +|[+3#0000000&|N|o| |N|a|m|e|]| |[|+|]| @43|2|,|1|5| @10|A|l@1 +|-+2&&@1| |I|N|S|E|R|T| |-@1| +0&&@62 diff --git a/src/testdir/dumps/Test_conceal_two_windows_11.dump b/src/testdir/dumps/Test_conceal_two_windows_11.dump new file mode 100644 --- /dev/null +++ b/src/testdir/dumps/Test_conceal_two_windows_11.dump @@ -0,0 +1,20 @@ +|o+0&#ffffff0|n|e| |o|n|e| |o|n|e| |o|n|e| |o|n|e| @55 +|t|w|o| @1|h|e|r|e| @65 +|t|h|r|e@1| @1|t|h|r|e@1| @62 +|S|e|c|o|n|d| |w|i|n|d|o|w| @61 +|~+0#4040ff13&| @73 +|~| @73 +|~| @73 +|~| @73 +|~| @73 +|[+1#0000000&|N|o| |N|a|m|e|]| |[|+|]| @43|3|,|1|4| @10|A|l@1 +|o+0&&|n|e| |o|n|e| |o|n|e| |o|n|e| |o|n|e| @55 +|t|w|o| @1|h|e|r|e| @65 +|t|h|r|e@1| |||h|i|d@1|e|n||> |t|h|r|e@1| @54 +|~+0#4040ff13&| @73 +|~| @73 +|~| @73 +|~| @73 +|~| @73 +|[+3#0000000&|N|o| |N|a|m|e|]| |[|+|]| @43|3|,|1|5| @10|A|l@1 +|-+2&&@1| |I|N|S|E|R|T| |-@1| +0&&@62 diff --git a/src/testdir/dumps/Test_conceal_two_windows_12.dump b/src/testdir/dumps/Test_conceal_two_windows_12.dump new file mode 100644 --- /dev/null +++ b/src/testdir/dumps/Test_conceal_two_windows_12.dump @@ -0,0 +1,20 @@ +|o+0&#ffffff0|n|e| |o|n|e| |o|n|e| |o|n|e| |o|n|e| @55 +|t|w|o| @1|h|e|r|e| @65 +|t|h|r|e@1| @1|t|h|r|e@1| @62 +|S|e|c|o|n|d| |w|i|n|d|o|w| @61 +|~+0#4040ff13&| @73 +|~| @73 +|~| @73 +|~| @73 +|~| @73 +|[+1#0000000&|N|o| |N|a|m|e|]| |[|+|]| @43|3|,|1|4| @10|A|l@1 +|o+0&&|n|e| |o|n|e| |o|n|e| |o|n|e| |o|n|e| @55 +|t|w|o| @1|h|e|r|e| @65 +|t|h|r|e@1| |||h|i|d@1|e|n>|| |t|h|r|e@1| @54 +|~+0#4040ff13&| @73 +|~| @73 +|~| @73 +|~| @73 +|~| @73 +|[+3#0000000&|N|o| |N|a|m|e|]| |[|+|]| @43|3|,|1|4| @10|A|l@1 +| +0&&@74 diff --git a/src/testdir/dumps/Test_conceal_two_windows_13.dump b/src/testdir/dumps/Test_conceal_two_windows_13.dump new file mode 100644 --- /dev/null +++ b/src/testdir/dumps/Test_conceal_two_windows_13.dump @@ -0,0 +1,20 @@ +|o+0&#ffffff0|n|e| |o|n|e| |o|n|e| |o|n|e| |o|n|e| @55 +|t|w|o| @1|h|e|r|e| @65 +|t|h|r|e@1| @1|t|h|r|e@1| @62 +|S|e|c|o|n|d| |w|i|n|d|o|w| @61 +|~+0#4040ff13&| @73 +|~| @73 +|~| @73 +|~| @73 +|~| @73 +|[+1#0000000&|N|o| |N|a|m|e|]| |[|+|]| @43|3|,|1|4| @10|A|l@1 +|o+0&&|n|e| |o|n|e| |o|n|e| |o|n|e| |o|n|e| @55 +|t|w|o| @1|h|e|r|e| @65 +|t|h|r|e@1| @1|t|h|r|e@1| @62 +> @74 +|~+0#4040ff13&| @73 +|~| @73 +|~| @73 +|~| @73 +|[+3#0000000&|N|o| |N|a|m|e|]| |[|+|]| @43|4|,|1| @11|A|l@1 +|-+2&&@1| |I|N|S|E|R|T| |-@1| +0&&@62 diff --git a/src/testdir/test_conceal.vim b/src/testdir/test_conceal.vim --- a/src/testdir/test_conceal.vim +++ b/src/testdir/test_conceal.vim @@ -91,6 +91,20 @@ func Test_conceal_two_windows() call VerifyScreenDump(buf, 'Test_conceal_two_windows_09v', {}) call term_sendkeys(buf, "\") + " Check moving the cursor while in insert mode. + call term_sendkeys(buf, ":set concealcursor=\r") + call term_sendkeys(buf, "a") + call VerifyScreenDump(buf, 'Test_conceal_two_windows_10', {}) + call term_sendkeys(buf, "\") + call VerifyScreenDump(buf, 'Test_conceal_two_windows_11', {}) + call term_sendkeys(buf, "\") + + " Check the "o" command + call VerifyScreenDump(buf, 'Test_conceal_two_windows_12', {}) + call term_sendkeys(buf, "o") + call VerifyScreenDump(buf, 'Test_conceal_two_windows_13', {}) + call term_sendkeys(buf, "\") + " clean up call StopVimInTerminal(buf) call delete('XTest_conceal') diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -796,6 +796,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 725, +/**/ 724, /**/ 723,