diff src/testdir/test_conceal.vim @ 15434:80e79573dd6e v8.1.0725

patch 8.1.0725: conceal mode is not completely tested commit https://github.com/vim/vim/commit/465e8b5985908596261cef9d671024ed8ded1ce3 Author: Bram Moolenaar <Bram@vim.org> 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.
author Bram Moolenaar <Bram@vim.org>
date Fri, 11 Jan 2019 20:45:05 +0100
parents 8b78878311e0
children 5b0f37d844b3
line wrap: on
line diff
--- 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, "\<Esc>")
 
+  " 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, "\<Down>")
+  call VerifyScreenDump(buf, 'Test_conceal_two_windows_11', {})
+  call term_sendkeys(buf, "\<Esc>")
+
+  " 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, "\<Esc>")
+
   " clean up
   call StopVimInTerminal(buf)
   call delete('XTest_conceal')